From: Joe Perches Date: Mon, 13 Oct 2014 22:51:59 +0000 (-0700) Subject: checkpatch: add exception to return then else test X-Git-Tag: omap-for-v3.19/prcm-cleanup~76^2~106 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=840080a08492bd2bb3314077b672b59c88bbe0e6;p=pandora-kernel.git checkpatch: add exception to return then else test Add an exception to the return before else warning when the line following it is also a return like: if (foo) return bar; else return baz; This form of a test then return is at least as readable as if (foo) return bar; return baz; so don't emit a warning on the first form. Signed-off-by: Joe Perches Reported-by: Al Viro Cc: Elshad Mustafayev Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed