diff options
author | Li zeming <zeming@nfschina.com> | 2023-04-21 23:47:33 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-04-21 23:52:05 +0200 |
commit | f0ca8c25256dd22737db5780e33e2809ce297625 (patch) | |
tree | 3f3c86e3327cd0648b05503f36f1b7e43fc78bac /mm | |
parent | mm: move 'mmap_min_addr' logic from callers into vm_unmapped_area() (diff) | |
download | linux-f0ca8c25256dd22737db5780e33e2809ce297625.tar.xz linux-f0ca8c25256dd22737db5780e33e2809ce297625.zip |
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/sparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/sparse.c b/mm/sparse.c index fb7aeb1899a4..c2afdb26039e 100644 --- a/mm/sparse.c +++ b/mm/sparse.c @@ -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); |