Message ID | 1584450586-27917-1-git-send-email-yangtiezhu@loongson.cn (mailing list archive) |
---|---|
State | Mainlined |
Commit | 1e07c876ab759954627c13876a5353a06711bf3e |
Headers | show |
Series | MIPS: Loongson: Do not initialise statics to 0 | expand |
On Tue, Mar 17, 2020 at 09:09:46PM +0800, Tiezhu Yang wrote: > 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> Applied to mips-next. Thomas.
diff --git a/arch/mips/loongson64/numa.c b/arch/mips/loongson64/numa.c index e5b40c5..1ae072d 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 */
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> --- arch/mips/loongson64/numa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)