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 20449423F2; Mon, 16 Jan 2023 18:27:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1198942D24; Mon, 16 Jan 2023 18:27:41 +0100 (CET) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mails.dpdk.org (Postfix) with ESMTP id 42B4442D1E for ; Mon, 16 Jan 2023 18:27:38 +0100 (CET) Received: by mail-pj1-f52.google.com with SMTP id w4-20020a17090ac98400b002186f5d7a4cso34594461pjt.0 for ; Mon, 16 Jan 2023 09:27:38 -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=1SxuY2e2GN7FXhgH08+IpKx9vaN4y2f8ZxbMPpElRgUDmpd5MP9KJxEV2ujtvW5L0f oHHvCX1UPRxU9Jbc2iz/MCfhPxHLkjGGddvMh3Ehls2UdlpJisO8HzoRYRc5T5m0TIar bw8Md8OexI6yD8ZsxI9dv91jZBmYkj5pvDiJEzHFM7mk35w83NmNVQyH65k84ius6X8y Ss1hsHQFYsu1lJ3sDoShSgkGxhQL5edqilR5y1OF6D2zB4F+bdCarFnBgg8JDM1GCHpc 5kkRekaOkPp3Xex+pTrGy60B+sOzQJ8zUKMkrg65GVldfns3iEgrcz9L4DeOse3gwOkJ XNdg== 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=O1525PSvzchk/gwdJfyP+yQPVKNzIRu9WDcvm3cRSZH37JAfdpRuedvyf2z7GuSlZd 4TIl/h8kqXAZy7nOpNB/Tz76fF7D5TKqDHeFl/T9C2EQ222r4U+blioArGZyhMW3HgaY srcYw35wmoR/ONUto3safNNv6DVWk1X8qpUx8EIoh0nWOiWA2FEPfvdRxZvHVJxEAL3x TtKkg0v/2dzKnggfjVSGq3A2D2yivun+TURhZfPt/IRGyTSHTy1RcQYFMaCXf2TK3+L5 Jq2Azk5oHA0vrc14hC+El1CqRvN/veyNijatqpeurrwgHLFDTzydwLfV8vz0ONSgKUZb 6iag== X-Gm-Message-State: AFqh2krz5RB+QAvfklbT2nTi4T7Y/dRU0gL9M+IC/80PPBN2pUgkLqCz kSzPXE4hxrGtM2jPIzbZczV3txQK6tEmpWIvC58= X-Google-Smtp-Source: AMrXdXtjkiWzjlIEHA3wHJXz/9nrEZvEScoVFYN8pjLiLRHLQkb2W829CkgM54zZlBsE8iKqf671nA== X-Received: by 2002:a17:903:2015:b0:194:8d2f:68f5 with SMTP id s21-20020a170903201500b001948d2f68f5mr461115pla.17.1673890057061; Mon, 16 Jan 2023 09:27:37 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id j3-20020a170902c3c300b001945b984341sm3992635plj.100.2023.01.16.09.27.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 09:27:36 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Yuying Zhang , Beilei Xing Subject: [PATCH 4/7] i40e: fix whitespace Date: Mon, 16 Jan 2023 09:27:28 -0800 Message-Id: <20230116172732.84976-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230116172732.84976-1-stephen@networkplumber.org> References: <20230116172732.84976-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