]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a5658b58f537bdf9ccd7933501525ca1653ff47
treed41c61a5d14983da808de3ac672d72abfecc27e8
parentde07c7028d6fb112407238f3d5df5a34c080e6ee
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