Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Xiang wangx <wangxiang@cdjrlc.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211221033423.29820-1-wangxiang@cdjrlc.com

authored by

Xiang wangx and committed by
Michael Ellerman
9d021a21 6130ed79

+1 -1
+1 -1
arch/powerpc/platforms/powermac/nvram.c
··· 71 71 static int nvram_naddrs; 72 72 static volatile unsigned char __iomem *nvram_data; 73 73 static int is_core_99; 74 - static int core99_bank = 0; 74 + static int core99_bank; 75 75 static int nvram_partitions[3]; 76 76 // XXX Turn that into a sem 77 77 static DEFINE_RAW_SPINLOCK(nv_lock);