aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arcangeli <[email protected]>2016-10-07 17:01:31 -0700
committerLinus Torvalds <[email protected]>2016-10-07 18:46:29 -0700
commit97a42cd4398162aba77da55b568d85e5ec6b7705 (patch)
tree238dd26c444f84c69169c38a26e2ecff8f95a8b7
parente86f15ee64d8ee46255d964d55f74f5ba9af8c36 (diff)
mm: vma_adjust: remove superfluous check for next not NULL
If next would be NULL we couldn't reach such code path. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Andrea Arcangeli <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Jan Vorlicek <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index e53637f8ac42..aa29d43130b3 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -706,7 +706,7 @@ int __vma_adjust(struct vm_area_struct *vma, unsigned long start,
* If next doesn't have anon_vma, import from vma after
* next, if the vma overlaps with it.
*/
- if (remove_next == 2 && next && !next->anon_vma)
+ if (remove_next == 2 && !next->anon_vma)
exporter = next->vm_next;
} else if (end > next->vm_start) {