]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ice: Use continue instead of an else block
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tue, 16 Apr 2019 17:34:57 +0000 (10:34 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 30 May 2019 17:38:53 +0000 (10:38 -0700)
For style consistency, use continue instead of an else block in
ice_pf_dcb_recfg.

Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_dcb_lib.c

index e6a4ef6a2565ca9081bb29d1ba9b1d5bf9449044..e4174a14aa441104b9fd719ffe5f7785c37e8a7b 100644 (file)
@@ -120,12 +120,14 @@ static void ice_pf_dcb_recfg(struct ice_pf *pf)
                        tc_map = ICE_DFLT_TRAFFIC_CLASS;
 
                ret = ice_vsi_cfg_tc(pf->vsi[v], tc_map);
-               if (ret)
+               if (ret) {
                        dev_err(&pf->pdev->dev,
                                "Failed to config TC for VSI index: %d\n",
                                pf->vsi[v]->idx);
-               else
-                       ice_vsi_map_rings_to_vectors(pf->vsi[v]);
+                       continue;
+               }
+
+               ice_vsi_map_rings_to_vectors(pf->vsi[v]);
        }
 }