diff options
author | Tony Nguyen <anthony.l.nguyen@intel.com> | 2022-12-15 13:36:25 -0800 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2023-01-19 08:18:03 -0800 |
commit | 91dbcb91d006a62dd60c16d5f1f11fd4f6175786 (patch) | |
tree | 9c97b36d56e23b144edb46a933486885710c853b /drivers/net/ethernet/intel/ice/ice_ethtool.c | |
parent | bd557d97978ea3e22653117a39184b5db70c7093 (diff) | |
download | linux-91dbcb91d006a62dd60c16d5f1f11fd4f6175786.tar.gz linux-91dbcb91d006a62dd60c16d5f1f11fd4f6175786.tar.bz2 linux-91dbcb91d006a62dd60c16d5f1f11fd4f6175786.zip |
ice: Explicitly return 0
Previous checks, and goto, will catch all errors meaning these returns
will only return 0; explicitly return 0 for these cases.
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_ethtool.c b/drivers/net/ethernet/intel/ice/ice_ethtool.c index e0a83d55fef4..5b71d40a7dc0 100644 --- a/drivers/net/ethernet/intel/ice/ice_ethtool.c +++ b/drivers/net/ethernet/intel/ice/ice_ethtool.c @@ -664,7 +664,7 @@ static int ice_lbtest_prepare_rings(struct ice_vsi *vsi) if (status) goto err_start_rx_ring; - return status; + return 0; err_start_rx_ring: ice_vsi_free_rx_rings(vsi); |