Skip to contentSkip to conversation

powerpc: No need to initialise statics to 0

PATCH New Xiang wangx 1 participant 1 message Dec 21, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: No need to initialise statics to 0

Static variables do not need to be initialised to 0, because compiler will initialise all uninitialised statics to 0. Thus, remove the unneeded initializations.

---
 arch/powerpc/platforms/powermac/nvram.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/powermac/nvram.c +1 -1
index 853ccc4480e2..4d23793c2f1f 100644
@@ -71,7 +71,7 @@ struct core99_header {
 static int nvram_naddrs;
 static volatile unsigned char __iomem *nvram_data;
 static int is_core_99;
-static int core99_bank = 0;
+static int core99_bank;
 static int nvram_partitions[3];
 // XXX Turn that into a sem
 static DEFINE_RAW_SPINLOCK(nv_lock);
Signature · 1 line
2.34.1