mm/mmap.c: simplify the failure return working flow
authorChen Gang <gang.chen.5i5j@gmail.com>
Tue, 8 Sep 2015 22:03:38 +0000 (15:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 8 Sep 2015 22:35:28 +0000 (15:35 -0700)
commite3975891254e08d220ddcafca93a0e05d9560bfb
tree6c6cbc9bac8c02e8df289acf25871a569659b5bd
parent44a30220bc0a171c010e8df63d144655abdafe61
mm/mmap.c: simplify the failure return working flow

__split_vma() doesn't need out_err label, neither need initializing err.

copy_vma() can return NULL directly when kmem_cache_alloc() fails.

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c