]> git.baikalelectronics.ru Git - kernel.git/commit
esp: drop unneeded assignment in esp4_gro_receive()
authorYang Li <yang.lee@linux.alibaba.com>
Sun, 25 Apr 2021 10:14:32 +0000 (18:14 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 14 May 2021 11:44:39 +0000 (13:44 +0200)
commitf528cff38ad4a8f2cdea73d58711e4f3f44cc7fb
treeacef43b1106c46e7f049cece58bd3df52b879081
parent102bb7367dd01546b845e2c68a9af398f87e511d
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>
net/ipv4/esp4_offload.c