All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] alpha: Remove the static variable initialisations to 0
@ 2022-07-23  9:22 Jason Wang
  0 siblings, 0 replies; only message in thread
From: Jason Wang @ 2022-07-23  9:22 UTC (permalink / raw)
  To: ink; +Cc: rth, mattst88, linux-alpha, linux-kernel, Jason Wang

Initialise global and static variable to 0 is always unnecessary.
Remove the unnecessary initialisations.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
 arch/alpha/kernel/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c
index 64fbfb0763b2..bce5f07c1d79 100644
--- a/arch/alpha/kernel/pci.c
+++ b/arch/alpha/kernel/pci.c
@@ -210,7 +210,7 @@ static struct pdev_srm_saved_conf *srm_saved_configs;
 static void pdev_save_srm_config(struct pci_dev *dev)
 {
 	struct pdev_srm_saved_conf *tmp;
-	static int printed = 0;
+	static int printed;
 
 	if (!alpha_using_srm || pci_has_flag(PCI_PROBE_ONLY))
 		return;
-- 
2.35.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-23  9:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-23  9:22 [PATCH] alpha: Remove the static variable initialisations to 0 Jason Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.