Commit 91dbcb91 authored by Tony Nguyen's avatar Tony Nguyen
Browse files

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: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
parent bd557d97
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");
+1 −1
Original line number Diff line number Diff line
@@ -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);