summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-10-14 00:51:59 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-14 02:18:15 +0200
commit840080a08492bd2bb3314077b672b59c88bbe0e6 (patch)
tree7af7c1f6fbe2218941ec74d9d1eccebe681d10d8 /Kbuild
parentcheckpatch: look for common misspellings (diff)
downloadlinux-840080a08492bd2bb3314077b672b59c88bbe0e6.tar.xz
linux-840080a08492bd2bb3314077b672b59c88bbe0e6.zip
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 <joe@perches.com> Reported-by: Al Viro <viro@ZenIV.linux.org.uk> Cc: Elshad Mustafayev <elshadimo@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions