xfrm: Remove unnecessary NULL check in xfrm_lookup_with_ifid()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 12 Mar 2025 17:21:13 +0000 (20:21 +0300)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 19 Mar 2025 02:13:14 +0000 (03:13 +0100)
commit399e0aae5aab30f911098a0430204e9034ff78bb
tree46ea79835565934a089d328fde983c0097d1136a
parent2e460eefbd4469420349bdcb81b331a46211717a
xfrm: Remove unnecessary NULL check in xfrm_lookup_with_ifid()

This NULL check is unnecessary and can be removed.  It confuses
Smatch static analysis tool because it makes Smatch think that
xfrm_lookup_with_ifid() can return a mix of NULL pointers and errors so
it creates a lot of false positives.  Remove it.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c