net: davicom: Remove redundant assignment to ret
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Sun, 25 Apr 2021 10:42:56 +0000 (18:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Apr 2021 19:48:30 +0000 (12:48 -0700)
commit9176e38027195346f50ab885498678ca7ae55a21
tree05948a848d65702c8ad34c6182f32a429a01f135
parent930d2d619d0a341693af4a7db9b37b96434ac65e
net: davicom: Remove redundant assignment to ret

Variable ret is set to zero but this value is never read as it is
overwritten with a new value later on, hence it is a redundant
assignment and can be removed.

Cleans up the following clang-analyzer warning:

drivers/net/ethernet/davicom/dm9000.c:1527:5: warning: Value stored to
'ret' is never read [clang-analyzer-deadcode.DeadStores].

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>
drivers/net/ethernet/davicom/dm9000.c