Commit 98086a95 authored by Bruce Allan's avatar Bruce Allan Committed by David S. Miller
Browse files

e1000e: improper return code signage

The e1000_get_cable_length_82577() should return a negative value upon
Signed-off-by: default avatarBruce Allan <>
Signed-off-by: default avatarJeff Kirsher <>
Signed-off-by: default avatarDavid S. Miller <>
parent 7ea9655f
......@@ -3137,7 +3137,7 @@ s32 e1000_get_cable_length_82577(struct e1000_hw *hw)
if (length == E1000_CABLE_LENGTH_UNDEFINED)
ret_val = E1000_ERR_PHY;
ret_val = -E1000_ERR_PHY;
phy->cable_length = length;
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