]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: warn only on "space before semicolon" at end of line
authorJoe Perches <joe@perches.com>
Thu, 23 Jan 2014 23:54:41 +0000 (15:54 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:36:57 +0000 (16:36 -0800)
commitf2cd9d462e574b653701c2d871ab17c31a4427e0
treef40f33a4dfbb04615575be0b1600db48b5894a79
parent16458a1f99809b5ca8bc4f88e18ed0459687443e
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl