diff options
author | Wei Yang <richardw.yang@linux.intel.com> | 2019-09-24 01:35:13 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-09-25 01:54:08 +0300 |
commit | 9da99f20ecf8f81a5446a47fd8de62036c20ae61 (patch) | |
tree | 4268146b9c8f52192f5bf9b8d74ececec7eb7d92 /mm | |
parent | 1edc97694d0fa95d143e3457be892544e41f794a (diff) | |
download | linux-9da99f20ecf8f81a5446a47fd8de62036c20ae61.tar.xz |
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 <richardw.yang@linux.intel.com>
Acked-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Will Deacon <will@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memory.c | 1 |
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)) { |