prctl: remove redunant assignment of "error" to zero
authorSasikantha babu <sasikanth.v19@gmail.com>
Mon, 30 Jul 2012 21:39:08 +0000 (14:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:11 +0000 (17:25 -0700)
commitf1fd75bfa07822b1de314062baff3280419a8bf4
tree7f5b234b6554dfa1459c32e3f941b3481700b044
parent6c4088ac3a4d82779903433bcd5f048c58fb1aca
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sys.c