From: huxiang Date: Thu, 22 Apr 2021 06:42:21 +0000 (+1000) Subject: mm/page_alloc: redundant definition variables of pfn in for loop X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0b6bbc8575f07c39de72bd5760a34972de64ec74;p=users%2Fjedix%2Flinux-maple.git mm/page_alloc: redundant definition variables of pfn in for loop This variable pfn is defined repeatedly, so it can be deleted. Link: https://lkml.kernel.org/r/20210401022802.10358-1-huxiang@uniontech.com Signed-off-by: huxiang Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index bcdc0c6f21f1..0ebc54f72b30 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3322,7 +3322,7 @@ void free_unref_page_list(struct list_head *list) local_irq_save(flags); list_for_each_entry_safe(page, next, list, lru) { - unsigned long pfn = page_private(page); + pfn = page_private(page); set_page_private(page, 0); trace_mm_page_free_batched(page);