aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorYang Li <[email protected]>2021-04-25 10:14:32 +0000
committerSteffen Klassert <[email protected]>2021-05-14 11:44:39 +0000
commit335a2a1fcefc948927e8c15636d9dc5d983b8f50 (patch)
treeacef43b1106c46e7f049cece58bd3df52b879081 /net/switchdev/switchdev.c
parentnet: mana: Use struct_size() in kzalloc() (diff)
downloadkernel-335a2a1fcefc948927e8c15636d9dc5d983b8f50.tar.gz
kernel-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 <[email protected]> Signed-off-by: Yang Li <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions