Commit 9da99f20 authored by Wei Yang's avatar Wei Yang Committed by Linus Torvalds

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.comSigned-off-by: default avatarWei Yang <richardw.yang@linux.intel.com>
Acked-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Cc: Will Deacon <will@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1edc9769
...@@ -1093,7 +1093,6 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb, ...@@ -1093,7 +1093,6 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb,
if (unlikely(details)) if (unlikely(details))
continue; continue;
entry = pte_to_swp_entry(ptent);
if (!non_swap_entry(entry)) if (!non_swap_entry(entry))
rss[MM_SWAPENTS]--; rss[MM_SWAPENTS]--;
else if (is_migration_entry(entry)) { else if (is_migration_entry(entry)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment