diff options
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c index fc1375f26fe5..90a04e2471df 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | |||
@@ -2121,8 +2121,8 @@ static s32 ixgbe_fc_autoneg_fiber(struct ixgbe_hw *hw) | |||
2121 | */ | 2121 | */ |
2122 | 2122 | ||
2123 | linkstat = IXGBE_READ_REG(hw, IXGBE_PCS1GLSTA); | 2123 | linkstat = IXGBE_READ_REG(hw, IXGBE_PCS1GLSTA); |
2124 | if (((linkstat & IXGBE_PCS1GLSTA_AN_COMPLETE) == 0) || | 2124 | if ((!!(linkstat & IXGBE_PCS1GLSTA_AN_COMPLETE) == 0) || |
2125 | ((linkstat & IXGBE_PCS1GLSTA_AN_TIMED_OUT) == 1)) { | 2125 | (!!(linkstat & IXGBE_PCS1GLSTA_AN_TIMED_OUT) == 1)) { |
2126 | ret_val = IXGBE_ERR_FC_NOT_NEGOTIATED; | 2126 | ret_val = IXGBE_ERR_FC_NOT_NEGOTIATED; |
2127 | goto out; | 2127 | goto out; |
2128 | } | 2128 | } |