mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									1edc97694d
								
							
						
					
					
						commit
						9da99f20ec
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
					@ -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)) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue