Commit d75372a2 authored by Gustavo A R Silva's avatar Gustavo A R Silva Committed by Jeff Kirsher

e1000e: add check on e1e_wphy() return value

Check return value from call to e1e_wphy(). This value is being
checked during previous calls to function e1e_wphy() and it seems
a check was missing here.

Addresses-Coverity-ID: 1226905
Signed-off-by: default avatarGustavo A R Silva <garsilva@embeddedor.com>
Reviewed-by: default avatarEthan Zhao <ethan.zhao@oracle.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 26bd4e2d
...@@ -2437,6 +2437,8 @@ static s32 e1000_hv_phy_workarounds_ich8lan(struct e1000_hw *hw) ...@@ -2437,6 +2437,8 @@ static s32 e1000_hv_phy_workarounds_ich8lan(struct e1000_hw *hw)
if (hw->phy.revision < 2) { if (hw->phy.revision < 2) {
e1000e_phy_sw_reset(hw); e1000e_phy_sw_reset(hw);
ret_val = e1e_wphy(hw, MII_BMCR, 0x3140); ret_val = e1e_wphy(hw, MII_BMCR, 0x3140);
if (ret_val)
return ret_val;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment