ranges: add is_err_or_null()
commit859d2e203ef4692ecf834dcf8d61b67c5b28255a
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Sep 2020 14:14:43 +0000 (15 17:14 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Sep 2020 14:14:43 +0000 (15 17:14 +0300)
tree4f8fd3e2eb746d07edc4f5c98c4a7b2e157d57e6
parent70b30d6d91109e4f9e1d22e13dbcdbea5de25a7e
ranges: add is_err_or_null()

Say you have a range list, and you want to see if it's known to be either
and error pointer or NULL then you can use the is_err_or_null(rl) to find
out.

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