]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ice: Remove braces for single statement blocks
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tue, 16 Apr 2019 17:24:27 +0000 (10:24 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 23 May 2019 17:51:53 +0000 (10:51 -0700)
Fix checkpatch warning "WARNING:BRACES: braces {} are not necessary
for single statement blocks"

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_virtchnl_pf.c

index 693f5d09326a5d535c24bc654c2e461ba8ff1ece..80d01ee2e967d7f37657b4aa60536eeee55715bb 100644 (file)
@@ -1903,9 +1903,8 @@ static int ice_vc_cfg_qs_msg(struct ice_vf *vf, u8 *msg)
        }
 
        vsi = pf->vsi[vf->lan_vsi_idx];
-       if (!vsi) {
+       if (!vsi)
                goto error_param;
-       }
 
        if (qci->num_queue_pairs > ICE_MAX_BASE_QS_PER_VF) {
                dev_err(&pf->pdev->dev,