]> git.karo-electronics.de Git - karo-tx-linux.git/commit
prctl: remove redunant assignment of "error" to zero
authorSasikantha babu <sasikanth.v19@gmail.com>
Sat, 21 Jul 2012 00:53:47 +0000 (10:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:02:17 +0000 (13:02 +1000)
commitf4766db564fb31e970fe2b661baa3686654f3f59
treef8bc5bb5c68aa73bf9862c643000227aed06125f
parent9d8da320cb9b7cbc1b937b7c9f783752ee3d5182
prctl: remove redunant assignment of "error" to zero

Just setting the "error" to error number is enough on failure and It
doesn't require to set "error" variable to zero in each switch case, since
it was already initialized with zero.  And also removed return 0 in switch
case with break statement

Signed-off-by: Sasikantha babu <sasikanth.v19@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Serge E. Hallyn <serge@hallyn.com>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/sys.c