]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: add a --strict test for comparison to true/false
authorJoe Perches <joe@perches.com>
Wed, 19 Jun 2013 00:07:21 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:07 +0000 (17:27 +1000)
commit33e342dcb1cea65c43a7d2b6ed2bb7bc5e9b694e
tree1522bc475642742f1e655479aa3c5aa5a5483166
parent72a1287c3daa2039669a4baf7654cd2ddb58f1cb
checkpatch: add a --strict test for comparison to true/false

Comparing to true or false is error prone.

Add tests for the various forms of (foo == true) && (false != bar)
that are only reported with --strict.

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