*new* logical_instead_of_bitwise: places that use && instead of &
commit389b1092a2d3c3be45051ed6b11a6e0cef8b2af3
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 19 Jan 2012 13:52:36 +0000 (19 16:52 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 19 Jan 2012 13:52:36 +0000 (19 16:52 +0300)
tree05eb7e1eef1515b3b65ead53ff2354fc2995f75b
parent9b209a928d26fdf91782fb3b5fa980a237811a53
*new* logical_instead_of_bitwise: places that use && instead of &

This test looks for places that do:
if (foo && SOME_FLAG) { ...
On the 3.3 kernel this found 4 bugs and 1 false positive.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_list.h
check_logical_instead_of_bitwise.c [new file with mode: 0644]