diff options
| author | Tony Nguyen <[email protected]> | 2022-12-15 21:36:25 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2023-01-19 16:18:03 +0000 |
| commit | 91dbcb91d006a62dd60c16d5f1f11fd4f6175786 (patch) | |
| tree | 9c97b36d56e23b144edb46a933486885710c853b /drivers/net/ethernet/intel/ice/ice_ethtool.c | |
| parent | ice: Reduce scope of variables (diff) | |
| download | kernel-91dbcb91d006a62dd60c16d5f1f11fd4f6175786.tar.gz kernel-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 <[email protected]>
Tested-by: Gurucharan G <[email protected]> (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); |
