Skip to content

Commit

Permalink
ice: Explicitly return 0
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
anguy11 committed Jan 19, 2023
1 parent bd557d9 commit 91dbcb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/ice/ice_dcb_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/ice/ice_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 91dbcb9

Please sign in to comment.