From: Ouyang Changchun Date: Thu, 12 Feb 2015 12:00:37 +0000 (+0800) Subject: ixgbe/base: fix X550 init early return X-Git-Tag: spdx-start~9288 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=146a1c46a15689ec7e557ccee2cbc0f1e6a9e849;p=dpdk.git ixgbe/base: fix X550 init early return It could early return according to read status. Signed-off-by: Changchun Ouyang Acked-by: Jijiang Liu --- diff --git a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_x550.c b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_x550.c index bd31187219..763fc46270 100644 --- a/lib/librte_pmd_ixgbe/ixgbe/ixgbe_x550.c +++ b/lib/librte_pmd_ixgbe/ixgbe/ixgbe_x550.c @@ -1063,6 +1063,8 @@ s32 ixgbe_setup_kr_x550em(struct ixgbe_hw *hw) status = ixgbe_read_iosf_sb_reg_x550(hw, IXGBE_KRM_LINK_CTRL_1(hw->phy.lan_id), IXGBE_SB_IOSF_TARGET_KR_PHY, ®_val); + if (status) + return status; reg_val |= IXGBE_KRM_LINK_CTRL_1_TETH_AN_ENABLE; reg_val |= IXGBE_KRM_LINK_CTRL_1_TETH_AN_FEC_REQ;