Skip to content

Commit f0ca8c2

Browse files
Li zemingakpm00
authored andcommitted
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.com Signed-off-by: Li zeming <zeming@nfschina.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 6b00864 commit f0ca8c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mm/sparse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ static struct page * __meminit section_activate(int nid, unsigned long pfn,
832832
struct mem_section *ms = __pfn_to_section(pfn);
833833
struct mem_section_usage *usage = NULL;
834834
struct page *memmap;
835-
int rc = 0;
835+
int rc;
836836

837837
if (!ms->usage) {
838838
usage = kzalloc(mem_section_usage_size(), GFP_KERNEL);

0 commit comments

Comments
 (0)