diff options
author | Sasikantha babu <sasikanth.v19@gmail.com> | 2012-07-30 14:39:08 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-30 17:25:11 -0700 |
commit | f1fd75bfa07822b1de314062baff3280419a8bf4 (patch) | |
tree | 7f5b234b6554dfa1459c32e3f941b3481700b044 /kernel/module.c | |
parent | 6c4088ac3a4d82779903433bcd5f048c58fb1aca (diff) | |
download | linux-f1fd75bfa07822b1de314062baff3280419a8bf4.tar.bz2 |
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>
Diffstat (limited to 'kernel/module.c')
0 files changed, 0 insertions, 0 deletions