]> git.baikalelectronics.ru Git - kernel.git/commit
ice: fix an error code in ice_cfg_phy_fec()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 7 Jan 2022 08:02:06 +0000 (11:02 +0300)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 10 Feb 2022 15:42:33 +0000 (07:42 -0800)
commit21338d58736ef70eaae5fd75d567a358ff7902f9
tree6931d07aed48819e1c527b1c7f7eaa31697832d8
parentc4416f5c2eb3ed48dfba265e628a6e52da962f03
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: ea78ce4dab05 ("ice: add link lenient and default override support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_common.c