aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorXiang wangx <wangxiang@cdjrlc.com>2021-12-21 11:34:23 +0800
committerMichael Ellerman <mpe@ellerman.id.au>2022-05-04 19:37:45 +1000
commit9d021a2149b8804627d04a9aceec60b24e384f11 (patch)
treefa1c079c1daf5a1b2a3e1c867aead709f55f87e2 /arch/powerpc/platforms
parentmacintosh/adb: Use swap() to make code cleaner (diff)
downloadlinux-dev-9d021a2149b8804627d04a9aceec60b24e384f11.tar.xz
linux-dev-9d021a2149b8804627d04a9aceec60b24e384f11.zip
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
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/powermac/nvram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powermac/nvram.c b/arch/powerpc/platforms/powermac/nvram.c
index de8fcb607290..1325db55d890 100644
--- a/arch/powerpc/platforms/powermac/nvram.c
+++ b/arch/powerpc/platforms/powermac/nvram.c
@@ -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);