Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4ba3f691 authored by kbuild test robot's avatar kbuild test robot Committed by Benedict Wong
Browse files

UPSTREAM: xfrm: fix ptr_ret.cocci warnings



net/xfrm/xfrm_interface.c:692:1-3: WARNING: PTR_ERR_OR_ZERO can be used

 Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Generated by: scripts/coccinelle/api/ptr_ret.cocci

Fixes: 44e2b838c24d ("xfrm: Return detailed errors from xfrmi_newlink")
CC: Benedict Wong <benedictwong@google.com>
Signed-off-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>

(cherry picked from commit c6f5e017df9dfa9f6cbe70da008e7d716d726f1b)
Signed-off-by: default avatarBenedict Wong <benedictwong@google.com>
Bug: 115914689
Change-Id: Ia9fac492f89614657c1d10b5758270064745e726
parent 8bbefb57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment