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)
This commit is contained in:
parent
bd557d9797
commit
91dbcb91d0
@ -859,7 +859,7 @@ int ice_init_pf_dcb(struct ice_pf *pf, bool locked)
|
||||
if (err)
|
||||
goto dcb_init_err;
|
||||
|
||||
return err;
|
||||
return 0;
|
||||
|
||||
dcb_init_err:
|
||||
dev_err(dev, "DCB init failed\n");
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user