kernel/sysctl.c: code cleanups
authorOla N. Kaldestad <mail@okal.no>
Fri, 17 Nov 2017 23:30:26 +0000 (15:30 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 18 Nov 2017 00:10:03 +0000 (16:10 -0800)
commitf9eb2fdd04d4e68fbea18970bbf65ace716d25b6
treeb1c5eddda49e62da3f7b4a1c328be5bdc3a84cc6
parent2743232c0c4c82311718bb4ec1fb659ed64ecf7a
kernel/sysctl.c: code cleanups

Remove unnecessary else block, remove redundant return and call to kfree
in if block.

Link: http://lkml.kernel.org/r/1510238435-1655-1-git-send-email-mail@okal.no
Signed-off-by: Ola N. Kaldestad <mail@okal.no>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sysctl.c