]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_alloc: use local variable zone_idx directly
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 16 Sep 2022 07:22:50 +0000 (15:22 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:29 +0000 (14:03 -0700)
commit8dde4c96293199a124c49d01d2e9731cf92f297d
treed3b881821994278eae95ebe185d1d11e7c971ffd
parent3a2977d9b47cbb9739380928ca893b87b2da1126
mm/page_alloc: use local variable zone_idx directly

Use local variable zone_idx directly since it holds the exact value of
zone_idx().  No functional change intended.

Link: https://lkml.kernel.org/r/20220916072257.9639-10-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c