|
@@ -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;
|