mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
mm/sparse-vmemmap.c: remove unwanted initialization in vmemmap_populate_compound_pages()
Remove unnecessary initialization for the variable 'next'. This fixes the clang scan warning: Value stored to 'next' during its initialization is never read [deadcode.DeadStores] Link: https://lkml.kernel.org/r/20220612182320.160651-1-gautammenghani201@gmail.com Signed-off-by: Gautam Menghani <gautammenghani201@gmail.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Muchun Song <songmuchun@bytedance.com> Reviewed-by: Joao Martins <joao.m.martins@oracle.com> Reviewed-by: Oscar Salvador <osalvador@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
b623d434f0
commit
55896f935a
|
@ -737,7 +737,7 @@ static int __meminit vmemmap_populate_compound_pages(unsigned long start_pfn,
|
|||
|
||||
size = min(end - start, pgmap_vmemmap_nr(pgmap) * sizeof(struct page));
|
||||
for (addr = start; addr < end; addr += size) {
|
||||
unsigned long next = addr, last = addr + size;
|
||||
unsigned long next, last = addr + size;
|
||||
|
||||
/* Populate the head page vmemmap page */
|
||||
pte = vmemmap_populate_address(addr, node, NULL, NULL);
|
||||
|
|
Loading…
Reference in a new issue