From 9da99f20ecf8f81a5446a47fd8de62036c20ae61 Mon Sep 17 00:00:00 2001 From: Wei Yang Date: Mon, 23 Sep 2019 15:35:13 -0700 Subject: [PATCH] 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 --- mm/memory.c | 1 - 1 file changed, 1 deletion(-) 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)) { -- 2.7.4