checkpatch: notice unbalanced else braces in a patch
authorJoe Perches <joe@perches.com>
Fri, 24 Feb 2017 23:01:41 +0000 (15:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Feb 2017 01:46:57 +0000 (17:46 -0800)
commite4c5babd32f974cf3db4b5bdb02f23132cc81afb
treed41c61a5d14983da808de3ac672d72abfecc27e8
parent1bde561e471c964b57512008351ed75ead754b4b
checkpatch: notice unbalanced else braces in a patch

Patches that add or modify code like

} else
<foo>
or
else {
<bar>

where one branch appears to have a brace and the other branch does not
have a brace should emit a --strict style message.

Link: http://lkml.kernel.org/r/c6be32747fc725cbc235802991746700a0f54fdc.1486754390.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl