OSDN Git Service

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 e6a4ef6..e4174a1 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]);
        }
 }