net/packet: Remove redundant assignment to ret
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Mon, 17 May 2021 10:15:25 +0000 (18:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 May 2021 23:03:56 +0000 (16:03 -0700)
commit25c55b38d85b54e49f2c9a3c7d483d1a24173b94
tree88f92689cf48f44eb85ca8ea7e8b142999bb1039
parent8ed2e60b7788825d71e70ed26160d327a588dee5
net/packet: Remove redundant assignment to ret

Variable ret is set to '0' or '-EBUSY', but this value is never read
as it is not used later on, hence it is a redundant assignment and
can be removed.

Clean up the following clang-analyzer warning:

net/packet/af_packet.c:3936:4: warning: Value stored to 'ret' is never
read [clang-analyzer-deadcode.DeadStores].

net/packet/af_packet.c:3933:4: warning: Value stored to 'ret' is never
read [clang-analyzer-deadcode.DeadStores].

No functional change.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c