diff options
author | Yang Li <yang.lee@linux.alibaba.com> | 2021-04-25 12:14:32 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2021-05-14 13:44:39 +0200 |
commit | 335a2a1fcefc948927e8c15636d9dc5d983b8f50 (patch) | |
tree | acef43b1106c46e7f049cece58bd3df52b879081 /net/key/af_key.c | |
parent | net: mana: Use struct_size() in kzalloc() (diff) | |
download | linux-335a2a1fcefc948927e8c15636d9dc5d983b8f50.tar.xz linux-335a2a1fcefc948927e8c15636d9dc5d983b8f50.zip |
esp: drop unneeded assignment in esp4_gro_receive()
Making '!=' operation with 0 directly after calling
the function xfrm_parse_spi() is more efficient,
assignment to err is redundant.
Eliminate the following clang_analyzer warning:
net/ipv4/esp4_offload.c:41:7: warning: Although the value stored to
'err' is used in the enclosing expression, the value is never actually
read from 'err'
No functional change, only more efficient.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/key/af_key.c')
0 files changed, 0 insertions, 0 deletions