diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-11-01 08:57:37 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-02 15:52:19 +0900 |
commit | 5618c8e24ad6ab09282f6583a228d80c1fd14c65 (patch) | |
tree | da3221b5fb53367f6e83fb9e374d1fc0b41ccd81 /drivers | |
parent | 3a1246fcbcb43b33c4540d74c36119d6389a24b4 (diff) | |
download | linux-5618c8e24ad6ab09282f6583a228d80c1fd14c65.tar.bz2 |
net: dl2k: remove redundant re-assignment to np
The pointer np is initialized and then re-assigned the same value
a few lines later. Remove the redundant duplicated assignment. Cleans
up clang warning:
drivers/net/ethernet/dlink/dl2k.c:314:25: warning: Value stored to
'np' during its initialization is never read
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/dlink/dl2k.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c index a2f6758d38dd..f0536b16b3c3 100644 --- a/drivers/net/ethernet/dlink/dl2k.c +++ b/drivers/net/ethernet/dlink/dl2k.c @@ -313,7 +313,7 @@ find_miiphy (struct net_device *dev) { struct netdev_private *np = netdev_priv(dev); int i, phy_found = 0; - np = netdev_priv(dev); + np->phy_addr = 1; for (i = 31; i >= 0; i--) { |