diff options
author | 2022-12-15 13:36:25 -0800 | |
---|---|---|
committer | 2023-01-19 08:18:03 -0800 | |
commit | 91dbcb91d006a62dd60c16d5f1f11fd4f6175786 (patch) | |
tree | 9c97b36d56e23b144edb46a933486885710c853b /drivers/net/ethernet/intel/ice/ice_dcb_lib.c | |
parent | ice: Reduce scope of variables (diff) | |
download | linux-rng-91dbcb91d006a62dd60c16d5f1f11fd4f6175786.tar.xz linux-rng-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_dcb_lib.c')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_dcb_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_dcb_lib.c b/drivers/net/ethernet/intel/ice/ice_dcb_lib.c index 3a7e629145a5..a97b137e21c0 100644 --- a/drivers/net/ethernet/intel/ice/ice_dcb_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_dcb_lib.c @@ -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"); |