Skip to content

Commit 5df4097

Browse files
gobenjigregkh
authored andcommitted
e1000e: Fix return value test
commit d3509f8bc7b0560044c15f0e3ecfde1d9af757a6 upstream. All the helpers return -E1000_ERR_PHY. Signed-off-by: Benjamin Poirier <bpoirier@suse.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent fbb2d80 commit 5df4097

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/net/ethernet/intel/e1000e

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5035,7 +5035,7 @@ static bool e1000e_has_link(struct e1000_adapter *adapter)
50355035
break;
50365036
}
50375037

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

0 commit comments

Comments
 (0)