]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit85f3eb5bccf36e71cc21bfed0ad6179134295c70
treeb2660986886bf926f82efd7960b40db57c0f350c
parent5046e18ceb272360cd415ba8612ad42cf6d54de8
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