aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Nosek <[email protected]>2020-04-01 21:10:45 -0700
committerLinus Torvalds <[email protected]>2020-04-02 09:35:31 -0700
commit250046e7ba2a02ea7c2b9e65a22fe83338b07fdf (patch)
treebf3d9c87e5d74230113572f0522cef1f36ef11ae
parent6923aa0d8c629a7853822626877dcb11f4f1d354 (diff)
mm/compaction.c: clean code by removing unnecessary assignment
Previously 0 was assigned to variable 'last_migrated_pfn'. But the variable is not read after that, so the assignment can be removed. Signed-off-by: Mateusz Nosek <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Cc: Mel Gorman <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/compaction.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/compaction.c b/mm/compaction.c
index c589ead54fb3..df3da2f76fdc 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -2182,7 +2182,6 @@ compact_zone(struct compact_control *cc, struct capture_control *capc)
ret = COMPACT_CONTENDED;
putback_movable_pages(&cc->migratepages);
cc->nr_migratepages = 0;
- last_migrated_pfn = 0;
goto out;
case ISOLATE_NONE:
if (update_cached) {