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 D5704423F2; Mon, 16 Jan 2023 18:51:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 75ADA42D29; Mon, 16 Jan 2023 18:51:36 +0100 (CET) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id E141242D26 for ; Mon, 16 Jan 2023 18:51:34 +0100 (CET) Received: by mail-pj1-f46.google.com with SMTP id gz9-20020a17090b0ec900b002290bda1b07so6895734pjb.1 for ; Mon, 16 Jan 2023 09:51:34 -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=n6rS65wzNj5e/IRJaGBHhWRhuvfBT7R96cufB0FNJ1K9eooiZ/jN8w2Tuu1Z1yt9Xp R3JAQ3PlWsRIlIddMHpIoG/WYsJ3ZnPljl+vosiMc75l2K5dIPpWccq0/CyrujBZMtx7 Og35NEqPK/uLk+kLZn/SC+A+ZV/OS26shPcoSA6jGKVhxY5XY06FWgpAFtDnWS+HdE/4 akD4hkdR6kbvzCWUbg+QncBTTGF3gR38yfin794Qkwg3bY4UbG7kjQM16e4rXaNHEdnr yar21pfWE68Brb8PZeKLPELTe1vT3viPDqm8LcCDbYKPOSk/0OwbO2GKmvVR8ib9qk9q 6fyw== 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=k96kkuhf1QAdkveeqAr1vLfZr/I+wsKDhFUoKHfI1SJfZmTtYz0cnMUG8OfoHva0fz x9V0PuTgxjaauJNekFrmgUlfN9g74II5Bo0zbjdA+S8MgowfpfhARKkfWF6I/sFtDDid +M6JBuH+1knvPoLqJE9wpTAKzU/WxUxboxkDSGFkeSQp2iwEM5Sq6FdBwbU+g0FkRyYe /AQzQ0/NLPXyC0z5XSv7iW8EkwWCpHTFuVhgGfACMyeG8O/+tv/KS4xuJQ+Le4DJL4bA cvEsBXTv7QM55RYSQ9PJ3XWBL+ImzLOZbfQ6SwSMEPaf/vG8FU3RrneqMWgKEXGHrbrd GeIA== X-Gm-Message-State: AFqh2kochB8P/yIJVBIF0LeHnCBvuH0yjHIi51jYXje34Q4NrW+AH1cr B1wJgsN8YEi6TOR30NGg8BopWTYM8eOL0ul0Tj0= X-Google-Smtp-Source: AMrXdXutecGF+g8b5TME9yaGW5fYcP711u+qwswA7qWCe/4qffeqf5N/HtLHAuu+U0ORzfAXwwtTng== X-Received: by 2002:a17:902:b282:b0:194:810a:d69b with SMTP id u2-20020a170902b28200b00194810ad69bmr619417plr.3.1673891494221; Mon, 16 Jan 2023 09:51:34 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id k15-20020a170902d58f00b001947c22185bsm5035795plh.184.2023.01.16.09.51.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 09:51:33 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Yuying Zhang , Beilei Xing Subject: [PATCH v2 4/7] i40e: fix whitespace Date: Mon, 16 Jan 2023 09:51:24 -0800 Message-Id: <20230116175127.87346-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230116175127.87346-1-stephen@networkplumber.org> References: <20230116172732.84976-1-stephen@networkplumber.org> <20230116175127.87346-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