summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/atheros
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-04 08:15:30 +0100
committerDavid S. Miller <davem@davemloft.net>2018-07-04 22:39:10 +0900
commit371b4fc33b2e32bd18fc139d2fb8b508ea66fe50 (patch)
tree5cbfc715ce390ef0698e57f30d709b324a6e43b2 /drivers/net/ethernet/atheros
parent3ff39a21640efd469c8b9d96e34d281deed0c6f6 (diff)
downloadlinux-371b4fc33b2e32bd18fc139d2fb8b508ea66fe50.tar.bz2
net: alx: remove redundant variable old_duplex
Variable old_duplex is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'old_duplex' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros')
-rw-r--r--drivers/net/ethernet/atheros/alx/main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/atheros/alx/main.c b/drivers/net/ethernet/atheros/alx/main.c
index 5e5022fa1d04..6d3221134927 100644
--- a/drivers/net/ethernet/atheros/alx/main.c
+++ b/drivers/net/ethernet/atheros/alx/main.c
@@ -1279,7 +1279,6 @@ static void alx_check_link(struct alx_priv *alx)
struct alx_hw *hw = &alx->hw;
unsigned long flags;
int old_speed;
- u8 old_duplex;
int err;
/* clear PHY internal interrupt status, otherwise the main
@@ -1288,7 +1287,6 @@ static void alx_check_link(struct alx_priv *alx)
alx_clear_phy_intr(hw);
old_speed = hw->link_speed;
- old_duplex = hw->duplex;
err = alx_read_phy_link(hw);
if (err < 0)
goto reset;