mm/vmscan.c: clean code by removing unnecessary assignment
authorMateusz Nosek <mateusznosek0@gmail.com>
Thu, 2 Apr 2020 04:10:15 +0000 (21:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 2 Apr 2020 16:35:31 +0000 (09:35 -0700)
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 <mateusznosek0@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Link: http://lkml.kernel.org/r/20200229214022.11853-1-mateusznosek0@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c

index 0eae0aa9df12e30f94b5eb918d56e49c9ab9929d..29a6a825629e70652119de864d3b3f0b1b911d7a 100644 (file)
@@ -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 */