]> git.baikalelectronics.ru Git - kernel.git/commit
mm/compaction.c: clean code by removing unnecessary assignment
authorMateusz Nosek <mateusznosek0@gmail.com>
Thu, 2 Apr 2020 04:10:45 +0000 (21:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 2 Apr 2020 16:35:31 +0000 (09:35 -0700)
commita05f279d61dcd6ca2bdf1eb1e9dda8e5d17ebda2
treebf3d9c87e5d74230113572f0522cef1f36ef11ae
parent69d3cd2e095959030f7cbabe5a44c8eb6bf182ed
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 <mateusznosek0@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Mel Gorman <mgorman@techsingularity.net>
Link: http://lkml.kernel.org/r/20200318174509.15021-1-mateusznosek0@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/compaction.c