diff options
Diffstat (limited to 'drivers/net/e1000/e1000_hw.c')
-rw-r--r-- | drivers/net/e1000/e1000_hw.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/e1000/e1000_hw.c b/drivers/net/e1000/e1000_hw.c index 37eb351b4c9b..784f9505864a 100644 --- a/drivers/net/e1000/e1000_hw.c +++ b/drivers/net/e1000/e1000_hw.c | |||
@@ -2737,8 +2737,12 @@ e1000_check_for_link(struct e1000_hw *hw) | |||
2737 | */ | 2737 | */ |
2738 | if(hw->tbi_compatibility_en) { | 2738 | if(hw->tbi_compatibility_en) { |
2739 | uint16_t speed, duplex; | 2739 | uint16_t speed, duplex; |
2740 | e1000_get_speed_and_duplex(hw, &speed, &duplex); | 2740 | ret_val = e1000_get_speed_and_duplex(hw, &speed, &duplex); |
2741 | if(speed != SPEED_1000) { | 2741 | if (ret_val) { |
2742 | DEBUGOUT("Error getting link speed and duplex\n"); | ||
2743 | return ret_val; | ||
2744 | } | ||
2745 | if (speed != SPEED_1000) { | ||
2742 | /* If link speed is not set to gigabit speed, we do not need | 2746 | /* If link speed is not set to gigabit speed, we do not need |
2743 | * to enable TBI compatibility. | 2747 | * to enable TBI compatibility. |
2744 | */ | 2748 | */ |