From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 228D7423F4; Tue, 17 Jan 2023 01:15:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 09B1E42D2A; Tue, 17 Jan 2023 01:15:02 +0100 (CET) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id D575042D24 for ; Tue, 17 Jan 2023 01:15:00 +0100 (CET) Received: by mail-pl1-f169.google.com with SMTP id k18so7815987pll.5 for ; Mon, 16 Jan 2023 16:15:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eD1OlL+X0oznEhXY9mZqBTMgQ7Bz86DSTGHrYHzuFu8=; b=urH53af7Q2cKYAZTAjOEbqnoW1A7s3Ki/D9jLQmAqm0dhJ0Hxxy3BSpWtG1T8OXlUO PLxSxe5Otm0nLJCKU3jYiTskAUGRPT8kAAOvQUbCz7ZBL8x3RRGx5cZSppO6hIc9h+NZ ojm1BBjOAL8HWjHKGJEMhpMK4SferM8WsHMSo+4oI+0lNlVW1V2Ni2BZ6Ae47vUd/m2l VEkBbkeZIXWRYAPWKnERzKTk1gQT3NSNy2MjbhoQtBZeHntjJoKbFN0bAJmESds2UvSZ DoR2/8xvp++2C1sXCQrPh5BzfFzZVvf4GBBEd+WVZ+JQ8xFcwFDgCJScY/pHJGbWjV2q eyKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eD1OlL+X0oznEhXY9mZqBTMgQ7Bz86DSTGHrYHzuFu8=; b=MB1/EiC9STiSxQjoFBXDFBPwgpHAFF9ky/Nsu82AwNDSnVtzXWxLiOV4VvtMk0rqDS E/RUbYyI/2pRI0JBXKGDZhw1YASaN/h6tMm1FZA2pXV8BJaiO2XJ2gNptVLNHww7iHRx iraMPP7zC+bjUofe91g0gU+E/CFZQPrLR9vQev/iqeyJJbyzSL4a38OZNTV1TclCmBL4 DFh88SJ0wvnGqGZt02MB6YOBZ7xhY/Gj2qUqmwTWwc+HxEEwHKcOdfZ0xAxER7K8b6l5 O9ycGI/FC9ePRZq+bSj+l3Qkb7J4g/OulGyWaIGI4u8L7rgcK6duGnOfRlr+g0+LNygQ 024w== X-Gm-Message-State: AFqh2koOOfoMdmCwMBIv9djEgtgqceABLR/mjYnxHGspeP+KKhOmqZOa ugO0i6dKvg4lXOPAEaJVc/eL3qyVg+Rf7umTa40= X-Google-Smtp-Source: AMrXdXuFv47MWJay35b7uFD8xrIm64MGZEXWE6mHnQV8CgWbcbWtnVpquTXUnZwh26LTEnQXn+J7Sw== X-Received: by 2002:a05:6a20:8e03:b0:b8:a19f:4f6c with SMTP id y3-20020a056a208e0300b000b8a19f4f6cmr1029334pzj.62.1673914499661; Mon, 16 Jan 2023 16:14:59 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id z24-20020a630a58000000b004790eb3fee1sm15940614pgk.90.2023.01.16.16.14.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 16:14:59 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Yuying Zhang , Beilei Xing Subject: [PATCH v3 4/7] i40e: fix whitespace Date: Mon, 16 Jan 2023 16:14:50 -0800 Message-Id: <20230117001453.94082-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230117001453.94082-1-stephen@networkplumber.org> References: <20230116172732.84976-1-stephen@networkplumber.org> <20230117001453.94082-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The style standard is to use blank after keywords. I.e "if (" not "if(" Signed-off-by: Stephen Hemminger --- drivers/net/i40e/i40e_pf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c index 15d9ff868f3a..7050e0057d8e 100644 --- a/drivers/net/i40e/i40e_pf.c +++ b/drivers/net/i40e/i40e_pf.c @@ -956,7 +956,7 @@ i40e_pf_host_process_cmd_add_vlan(struct i40e_pf_vf *vf, for (i = 0; i < vlan_filter_list->num_elements; i++) { ret = i40e_vsi_add_vlan(vf->vsi, vid[i]); - if(ret != I40E_SUCCESS) + if (ret != I40E_SUCCESS) goto send_msg; } @@ -996,7 +996,7 @@ i40e_pf_host_process_cmd_del_vlan(struct i40e_pf_vf *vf, vid = vlan_filter_list->vlan_id; for (i = 0; i < vlan_filter_list->num_elements; i++) { ret = i40e_vsi_delete_vlan(vf->vsi, vid[i]); - if(ret != I40E_SUCCESS) + if (ret != I40E_SUCCESS) goto send_msg; } @@ -1577,12 +1577,12 @@ i40e_pf_host_init(struct rte_eth_dev *dev) * return if SRIOV not enabled, VF number not configured or * no queue assigned. */ - if(!hw->func_caps.sr_iov_1_1 || pf->vf_num == 0 || pf->vf_nb_qps == 0) + if (!hw->func_caps.sr_iov_1_1 || pf->vf_num == 0 || pf->vf_nb_qps == 0) return I40E_SUCCESS; /* Allocate memory to store VF structure */ pf->vfs = rte_zmalloc("i40e_pf_vf",sizeof(*pf->vfs) * pf->vf_num, 0); - if(pf->vfs == NULL) + if (pf->vfs == NULL) return -ENOMEM; /* Disable irq0 for VFR event */ -- 2.39.0