unreachable: ignore common false positives caused by macros
commit20aed376ef0ac47dfc7e0eeee18ec69d9ac70937
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 25 Apr 2014 13:32:33 +0000 (25 16:32 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 25 Apr 2014 13:32:33 +0000 (25 16:32 +0300)
tree9eeb725e191044dce1c482e49c854adee6436388
parent65d960b74179cbe8ded7d3a34a1ded610df304e0
unreachable: ignore common false positives caused by macros

It's very normal to use list_for_each() to access the first element in the
list and then break before going to the other elements.  This causes a lot
of false positives.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_unreachable.c
smatch_data/kernel.unreachable.ignore [new file with mode: 0644]