Skip to content

Commit 1e07c87

Browse files
seehearfeeltsbogend
authored andcommitted
MIPS: Loongson: Do not initialise statics to 0
Fix the following checkpatch error: ERROR: do not initialise statics to 0 #125: FILE: loongson64/numa.c:125: + static unsigned long num_physpages = 0; Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 863be3c commit 1e07c87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/loongson64/numa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static unsigned long nid_to_addroffset(unsigned int nid)
122122
static void __init szmem(unsigned int node)
123123
{
124124
u32 i, mem_type;
125-
static unsigned long num_physpages = 0;
125+
static unsigned long num_physpages;
126126
u64 node_id, node_psize, start_pfn, end_pfn, mem_start, mem_size;
127127

128128
/* Parse memory information and activate */

0 commit comments

Comments
 (0)