e1000e: add missing bailout on error
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 5 Dec 2012 06:26:19 +0000 (06:26 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 16 Jan 2013 07:40:35 +0000 (23:40 -0800)
...discovered during code inspection.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/ich8lan.c

index 15d93141cc1119f1b5646f02f230d7cdd02be4c6..051dfda75fc02df651022fa750270a0e259b6bb2 100644 (file)
@@ -2077,6 +2077,8 @@ static s32 e1000_lv_phy_workarounds_ich8lan(struct e1000_hw *hw)
 
        /* Set MDIO slow mode before any other MDIO access */
        ret_val = e1000_set_mdio_slow_mode_hv(hw);
+       if (ret_val)
+               return ret_val;
 
        ret_val = hw->phy.ops.acquire(hw);
        if (ret_val)