*new* check_test_bit: check for test_bit(BIT(0), &foo)
Joe Perches found a bug like this:
if (test_bit((QL_RESET_PER_SCSI | QL_RESET_START), &qdev->flags)) {
Where the intent was clearly:
if (test_bit(QL_RESET_PER_SCSI, &qdev->flags) ||
test_bit(QL_RESET_START, &qdev->flags)) {
I didn't find any similar instances of that, but quite few places do:
if (test_bit(BIT(0), &map)) {
instead of:
if (test_bit(0, &map)) {
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>