OSDN Git Service

net-sysfs: remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Thu, 9 Apr 2020 13:41:26 +0000 (14:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Apr 2020 17:14:53 +0000 (10:14 -0700)
commit5f0224a6ddc3101ab9664a5f7a6287047934a079
tree2c3b074abc9e251131d95d455a4b26aba355a4cb
parent6dbf02acef69b0742c238574583b3068afbd227c
net-sysfs: remove redundant assignment to variable ret

The variable ret is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c