mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
2e460eefbd
commit
399e0aae5a
1 changed files with 1 additions and 1 deletions
|
@ -3294,7 +3294,7 @@ no_transform:
|
|||
|
||||
ok:
|
||||
xfrm_pols_put(pols, drop_pols);
|
||||
if (dst && dst->xfrm &&
|
||||
if (dst->xfrm &&
|
||||
(dst->xfrm->props.mode == XFRM_MODE_TUNNEL ||
|
||||
dst->xfrm->props.mode == XFRM_MODE_IPTFS))
|
||||
dst->flags |= DST_XFRM_TUNNEL;
|
||||
|
|
Loading…
Add table
Reference in a new issue