]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/page_alloc: redundant definition variables of pfn in for loop
authorhuxiang <huxiang@uniontech.com>
Thu, 22 Apr 2021 06:42:21 +0000 (16:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 May 2021 21:55:06 +0000 (07:55 +1000)
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 <huxiang@uniontech.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/page_alloc.c

index bcdc0c6f21f1368ef83063ed907b236141911717..0ebc54f72b30bcbfce092c4aa52f3ac309979545 100644 (file)
@@ -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);