aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Yang <[email protected]>2019-09-23 15:35:13 -0700
committerLinus Torvalds <[email protected]>2019-09-24 15:54:08 -0700
commit9da99f20ecf8f81a5446a47fd8de62036c20ae61 (patch)
tree4268146b9c8f52192f5bf9b8d74ececec7eb7d92
parent1edc97694d0fa95d143e3457be892544e41f794a (diff)
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/[email protected] Signed-off-by: Wei Yang <[email protected]> Acked-by: Matthew Wilcox (Oracle) <[email protected]> Cc: Will Deacon <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/memory.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c
index b1dff75640b7..676020552b32 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)) {