Commit f0ca8c25 authored by Li zeming's avatar Li zeming Committed by Andrew Morton

sparse: remove unnecessary 0 values from rc

rc is assigned first, so it does not need to initialize the
assignment.

Link: https://lkml.kernel.org/r/20230421214733.2909-1-zeming@nfschina.comSigned-off-by: default avatarLi zeming <zeming@nfschina.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 6b008640
......@@ -832,7 +832,7 @@ static struct page * __meminit section_activate(int nid, unsigned long pfn,
struct mem_section *ms = __pfn_to_section(pfn);
struct mem_section_usage *usage = NULL;
struct page *memmap;
int rc = 0;
int rc;
if (!ms->usage) {
usage = kzalloc(mem_section_usage_size(), GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment