diff options
author | Andrea Arcangeli <aarcange@redhat.com> | 2016-10-07 17:01:31 -0700 |
---|---|---|
committer | Michal Hocko <mhocko@suse.com> | 2016-10-10 14:26:49 +0200 |
commit | 9772a886584d996aaf82936c67a720eda6256c34 (patch) | |
tree | dea8dee9bd977b81cae27f65888286456463cd7c | |
parent | 7bffe211cc3ca9acb5146107c7eb234863a2a93a (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/1474309513-20313-2-git-send-email-aarcange@redhat.com
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Jan Vorlicek <janvorli@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 97a42cd4398162aba77da55b568d85e5ec6b7705)
-rw-r--r-- | mm/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mmap.c b/mm/mmap.c index fcd1bf7dbff5..ff2f449ddb27 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -701,7 +701,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) { |