summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2020-03-17 16:09:46 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-03-19 15:17:14 +0300
commit1e07c876ab759954627c13876a5353a06711bf3e (patch)
tree365551339cead76efefdb48cc05ccdcd30855646 /arch/mips
parent863be3c3ab7396d606c26b9e50ac06543ec3bfd6 (diff)
downloadlinux-1e07c876ab759954627c13876a5353a06711bf3e.tar.xz
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 <yangtiezhu@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/loongson64/numa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/loongson64/numa.c b/arch/mips/loongson64/numa.c
index e5b40c5e3296..1ae072df4831 100644
--- a/arch/mips/loongson64/numa.c
+++ b/arch/mips/loongson64/numa.c
@@ -122,7 +122,7 @@ static unsigned long nid_to_addroffset(unsigned int nid)
static void __init szmem(unsigned int node)
{
u32 i, mem_type;
- static unsigned long num_physpages = 0;
+ static unsigned long num_physpages;
u64 node_id, node_psize, start_pfn, end_pfn, mem_start, mem_size;
/* Parse memory information and activate */