]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: improve operator spacing check
authorSam Bobroff <sam.bobroff@au1.ibm.com>
Thu, 16 Apr 2015 19:44:39 +0000 (12:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:03:58 +0000 (09:03 -0400)
commit86e6255b7f06694ee9cc2e3a80a9e0e7ef87fea3
tree1eddfca597a479fc88586df29e399e6d96a6c85e
parent900c5dcf4ae2f09f17f24f73b0d74365b5eda73a
checkpatch: improve operator spacing check

Code such as:
       x = timercmp(&now, &end, <);
Will currently trigger a checkpatch error. e.g.

ERROR: spaces required around that '<'

This is because the "Ignore operators passed as parameters" check looks
only for a comma following the operator.  Improve the check by also
looking for a close parenthesis.

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Cc: 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