Skip to contentSkip to conversation

alpha: Remove the static variable initialisations to 0

PATCH New Jason Wang 1 participant 1 message Jul 23, 2022 Alpha port

lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 alpha: Remove the static variable initialisations to 0

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

---
 arch/alpha/kernel/pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/alpha/kernel/pci.c +1 -1
index 64fbfb0763b2..bce5f07c1d79 100644
@@ -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;
Signature · 1 line
2.35.1