checking_for_null_instead_of_err_ptr: warn about incorrect checks for NULL
commit85a7c986ea3fe7714ba5efd498ef1eadca61e82f
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 7 May 2021 04:54:38 +0000 (7 07:54 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 7 May 2021 04:54:38 +0000 (7 07:54 +0300)
treeef11c3bc4b39d3649666e196458404f6929f9ec6
parent73f01971f708eaca77903dc6e196c6988edb4477
checking_for_null_instead_of_err_ptr: warn about incorrect checks for NULL

It's pretty common to check for NULL when the function returns error
pointers and not NULL.  Most of the warnings for this are debugfs checking
which should just be deleted.

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