]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: toughen trailing if statement checks and extend them to while and for
authorAndy Whitcroft <apw@shadowen.org>
Thu, 24 Jul 2008 04:29:03 +0000 (21:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:25 +0000 (10:47 -0700)
commit63605b70d73f2863af39c26f5cf199da579f38a4
tree7f637f7e8a1c01b0a5fd4456d31da4868472a95d
parent642571fe51a2a24a2fc1cf14104d9e3b951c3bc2
checkpatch: toughen trailing if statement checks and extend them to while and for

Extend the trailing statement checks to report a trailing semi-colon ';'
as we really want it on the next line and indented so it is really really
obvious.  Also extend the tests to include while and for.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl