Skip to contentSkip to conversation

edac: cpc925: Remove the static variable initialisations to 0

PATCH New Jason Wang 1 participant 1 message Jul 23, 2022 EDAC-core

lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 edac: cpc925: Remove the static variable initialisations to 0

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

---
 drivers/edac/cpc925_edac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/edac/cpc925_edac.c +1 -1
index 9797e6d60dde..e65ecb159bb3 100644
@@ -582,7 +582,7 @@ static void cpc925_mc_check(struct mem_ctl_info *mci)
 static u32 cpc925_cpu_mask_disabled(void)
 {
 	struct device_node *cpunode;
-	static u32 mask = 0;
+	static u32 mask;
 
 	/* use cached value if available */
 	if (mask != 0)
Signature · 1 line
2.35.1