From: Wei Yang Date: Mon, 23 Sep 2019 22:35:13 +0000 (-0700) Subject: mm: remove redundant assignment of entry X-Git-Tag: v5.4-rc1~55^2~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9da99f20ecf8f81a5446a47fd8de62036c20ae61;p=platform%2Fkernel%2Flinux-rpi.git mm: remove redundant assignment of entry Since ptent will not be changed after previous assignment of entry, it is not necessary to do the assignment again. Link: http://lkml.kernel.org/r/20190708082740.21111-1-richardw.yang@linux.intel.com Signed-off-by: Wei Yang Acked-by: Matthew Wilcox (Oracle) Cc: Will Deacon Cc: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory.c b/mm/memory.c index b1dff75..6760205 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -1093,7 +1093,6 @@ again: if (unlikely(details)) continue; - entry = pte_to_swp_entry(ptent); if (!non_swap_entry(entry)) rss[MM_SWAPENTS]--; else if (is_migration_entry(entry)) {