Skip to content

Commit d3509f8

Browse files
gobenjiJeff Kirsher
authored andcommitted
e1000e: Fix return value test
All the helpers return -E1000_ERR_PHY. Signed-off-by: Benjamin Poirier <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 65a29da commit d3509f8

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/intel/e1000e

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/e1000e/netdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5099,7 +5099,7 @@ static bool e1000e_has_link(struct e1000_adapter *adapter)
50995099
break;
51005100
}
51015101

5102-
if ((ret_val == E1000_ERR_PHY) && (hw->phy.type == e1000_phy_igp_3) &&
5102+
if ((ret_val == -E1000_ERR_PHY) && (hw->phy.type == e1000_phy_igp_3) &&
51035103
(er32(CTRL) & E1000_PHY_CTRL_GBE_DISABLE)) {
51045104
/* See e1000_kmrn_lock_loss_workaround_ich8lan() */
51055105
e_info("Gigabit has been disabled, downgrading speed\n");

0 commit comments

Comments
 (0)