Skip to content

Commit 21338d5

Browse files
Dan Carpenteranguy11
authored andcommitted
ice: fix an error code in ice_cfg_phy_fec()
Propagate the error code from ice_get_link_default_override() instead of returning success. Fixes: ea78ce4 ("ice: add link lenient and default override support") Signed-off-by: Dan Carpenter <[email protected]> Tested-by: Gurucharan G <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent c4416f5 commit 21338d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/intel/ice/ice_common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3342,7 +3342,8 @@ ice_cfg_phy_fec(struct ice_port_info *pi, struct ice_aqc_set_phy_cfg_data *cfg,
33423342
!ice_fw_supports_report_dflt_cfg(hw)) {
33433343
struct ice_link_default_override_tlv tlv;
33443344

3345-
if (ice_get_link_default_override(&tlv, pi))
3345+
status = ice_get_link_default_override(&tlv, pi);
3346+
if (status)
33463347
goto out;
33473348

33483349
if (!(tlv.options & ICE_LINK_OVERRIDE_STRICT_MODE) &&

0 commit comments

Comments
 (0)