zero_to_err_ptr: fix some false positives with ERR_CAST()
commitb222e3d3c390a4d208e6e31f81826de4f90d836c
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 29 Aug 2017 19:42:39 +0000 (29 22:42 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 29 Aug 2017 19:42:39 +0000 (29 22:42 +0300)
tree3ccadc976a71b243fa89dcd1f285d587ee2f9010
parent20309476f9da10b058b16b788432a52dd8220cd9
zero_to_err_ptr: fix some false positives with ERR_CAST()

There was an issue with code that does this:

foo = ERR_CAST(bar);
if (IS_ERR(foo)) { ...

The original code would not complain if you passed "bar" to IS_ERR() but
this code is doing the equivalent check but using "foo".  Let's handle that
as well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_zero_to_err_ptr.c