commit | 179f8f40fc3ae7cd49e96b3a7d5182166c36bdab | [log] [tgz] |
---|---|---|
author | Joe Perches <joe@perches.com> | Wed Jul 03 15:05:30 2013 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Wed Jul 03 16:07:45 2013 -0700 |
tree | b2660986886bf926f82efd7960b40db57c0f350c | |
parent | 77b9a53a627491df83a75361440485629c35aa91 [diff] |
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>