OSDN Git Service

net: ethernet: sun: remove redundant assignment to variable err
authorColin Ian King <colin.king@canonical.com>
Thu, 4 Jul 2019 12:36:51 +0000 (13:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jul 2019 19:12:13 +0000 (12:12 -0700)
commit2368a870d6408d8a834ebb2b9f1576144c96a78f
treea73ddcfa6eaef20c4e2712e8476d05997a0df064
parenta51df9f8da43e8bf9e508143630849b7d696e053
net: ethernet: sun: remove redundant assignment to variable err

The variable err is being assigned with a value that is never
read and it is being updated in the next statement with a new value.
The assignment 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>
drivers/net/ethernet/sun/niu.c