]> git.baikalelectronics.ru Git - kernel.git/commit
mm: remove unneeded local variable in free_area_init_core
authorBaoquan He <bhe@redhat.com>
Wed, 24 Feb 2021 20:06:24 +0000 (12:06 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Feb 2021 21:38:31 +0000 (13:38 -0800)
commit2e4b813739cb97608933f8c33a7a9451cddea37a
tree4be927933738928dae7af077a61cf0742eabf064
parent113d5e0b07c7bf5f09870683e281e1ab2e5644da
mm: remove unneeded local variable in free_area_init_core

Local variable 'zone_start_pfn' is not needed since there's only one call
site in free_area_init_core().  Let's remove it and pass
zone->zone_start_pfn directly to init_currently_empty_zone().

Link: https://lkml.kernel.org/r/20210122135956.5946-6-bhe@redhat.com
Signed-off-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c