*new* check_no_if_block: sometimes the if block is missing
commit7ed702257441b6c56c62ebe7811621eb8a941f52
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 May 2014 09:50:03 +0000 (14 12:50 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 May 2014 09:50:03 +0000 (14 12:50 +0300)
treea5b523e62422dad8f51095b7648de116eab7a430
parent10ac19ba0594286fd0079710e795b4e0920280e6
*new* check_no_if_block: sometimes the if block is missing

For example, I found some code like this:

if (foo)
/* empty */
frob();

Most of the code this finds is just crap code which isn't indented
correctly.  There are some cases where the unusual indenting was done
deliberately and eventually I may try to eliminate those false positives.

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