]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mremap.c: clean up goto just return ERR_PTR
authorDerek <denc716@gmail.com>
Wed, 15 Apr 2015 23:14:02 +0000 (16:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 Apr 2015 23:35:18 +0000 (16:35 -0700)
commit82de55bd5b3ba7df4d385aca09d4c3812dd63558
tree4c3f0e4977cd5d871dd93de6d55f0ff502db8ef2
parent1129430f61e8e9539eda514e9db633a2ab6e0a57
mm/mremap.c: clean up goto just return ERR_PTR

As suggested by Kirill the "goto"s in vma_to_resize aren't necessary, just
change them to explicit return.

Signed-off-by: Derek Che <crquan@ymail.com>
Suggested-by: "Kirill A. Shutemov" <kirill@shutemov.name>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mremap.c