diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-11-08 16:23:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-13 04:02:33 +0300 |
commit | 07842561a873e8f25272bcebe7f6c7f1af7c1a2d (patch) | |
tree | e6c4bbfb17097e0a780d6da143e276132c60da8d /drivers | |
parent | 4b33709d894f2f058566ac06d9769dbc5617268d (diff) | |
download | linux-07842561a873e8f25272bcebe7f6c7f1af7c1a2d.tar.xz |
net: realtek: r8169: remove redundant assignment to giga_ctrl
The variable giga_ctrl is being assigned to zero however this is
never read and hence the assignment is redundant, so remove it.
Cleans up clang warning:
drivers/net/ethernet/realtek/r8169.c:1978:3: warning: Value stored
to 'giga_ctrl' 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/realtek/r8169.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index fd218fd9ef3c..dcb8c39382e7 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net/ethernet/realtek/r8169.c @@ -1982,8 +1982,6 @@ static int rtl8169_set_speed_xmii(struct net_device *dev, rtl_writephy(tp, MII_ADVERTISE, auto_nego); rtl_writephy(tp, MII_CTRL1000, giga_ctrl); } else { - giga_ctrl = 0; - if (speed == SPEED_10) bmcr = 0; else if (speed == SPEED_100) |