From: Sasikantha babu Date: Mon, 30 Jul 2012 21:39:08 +0000 (-0700) Subject: prctl: remove redunant assignment of "error" to zero X-Git-Tag: v3.6-rc1~41^2~125 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1fd75bfa07822b1de314062baff3280419a8bf4;p=pandora-kernel.git 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 Acked-by: Kees Cook Acked-by: Serge E. Hallyn Cc: Cyrill Gorcunov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed