mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
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
This commit is contained in:
parent
6130ed79de
commit
9d021a2149
@ -71,7 +71,7 @@ struct core99_header {
|
|||||||
static int nvram_naddrs;
|
static int nvram_naddrs;
|
||||||
static volatile unsigned char __iomem *nvram_data;
|
static volatile unsigned char __iomem *nvram_data;
|
||||||
static int is_core_99;
|
static int is_core_99;
|
||||||
static int core99_bank = 0;
|
static int core99_bank;
|
||||||
static int nvram_partitions[3];
|
static int nvram_partitions[3];
|
||||||
// XXX Turn that into a sem
|
// XXX Turn that into a sem
|
||||||
static DEFINE_RAW_SPINLOCK(nv_lock);
|
static DEFINE_RAW_SPINLOCK(nv_lock);
|
||||||
|
Loading…
Reference in New Issue
Block a user