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 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb, if (unlikely(details)) continue; - entry = pte_to_swp_entry(ptent); if (!non_swap_entry(entry)) rss[MM_SWAPENTS]--; else if (is_migration_entry(entry)) {