From: Mateusz Nosek Date: Thu, 2 Apr 2020 04:10:15 +0000 (-0700) Subject: mm/vmscan.c: clean code by removing unnecessary assignment X-Git-Tag: microblaze-v5.10~1115^2~31 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=e072bff60a29c82b1536d78c412f009d1a1de4cf;p=linux-2.6-microblaze.git mm/vmscan.c: clean code by removing unnecessary assignment Previously 0 was assigned to variable 'lruvec_size', but the variable was never read later. So the assignment can be removed. Fixes: f87bccde6a7d ("mm/vmscan: remove unused lru_pages argument") Signed-off-by: Mateusz Nosek Signed-off-by: Andrew Morton Reviewed-by: Matthew Wilcox (Oracle) Reviewed-by: Wei Yang Reviewed-by: David Hildenbrand Link: http://lkml.kernel.org/r/20200229214022.11853-1-mateusznosek0@gmail.com Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 0eae0aa9df12..29a6a825629e 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2427,10 +2427,8 @@ out: case SCAN_FILE: case SCAN_ANON: /* Scan one type exclusively */ - if ((scan_balance == SCAN_FILE) != file) { - lruvec_size = 0; + if ((scan_balance == SCAN_FILE) != file) scan = 0; - } break; default: /* Look ma, no brain */