]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: warn only on "space before semicolon" at end of line
authorJoe Perches <joe@perches.com>
Fri, 3 Jan 2014 03:10:17 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:17 +0000 (14:10 +1100)
commitd000be05e3c7ef47f49a0991402837d67b042d7d
treedf070649a02658023a8d34fb2738b2ada2fc1712
parentbeac6b1331f765a7f4229ee4307bf3552f0d2e96
checkpatch: warn only on "space before semicolon" at end of line

The "space before a non-naked semicolon" test has unwanted output when
used in "for ( ;; )" loops.

Make the test work only on end-of-line statement
termination semicolons.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl