checkpatch: add a --strict test for comparison to true/false
authorJoe Perches <joe@perches.com>
Wed, 3 Jul 2013 22:05:30 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:45 +0000 (16:07 -0700)
commit179f8f40fc3ae7cd49e96b3a7d5182166c36bdab
treeb2660986886bf926f82efd7960b40db57c0f350c
parent77b9a53a627491df83a75361440485629c35aa91
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl