Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp199093ybe; Tue, 3 Sep 2019 20:50:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMtXmYryqnqaJnjrwZWdTrxh1Sx6PWJnLEpGXVz5TbKPzYgW0spPjuSdQ5Vgg1i90aSYuH X-Received: by 2002:a63:6407:: with SMTP id y7mr2238381pgb.188.1567569039419; Tue, 03 Sep 2019 20:50:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567569039; cv=none; d=google.com; s=arc-20160816; b=opkWjHMgrokdDPqfW7khky2NS8JJznigARgqYO9wS6XCUTI+4B8kqTuv4IGtQcqWKk KCIF/+C9uCOPqUNCyxL4NaIFyH/mk8oxaTyZiflDw71NzVuTGv+IZZ6uUvfkr5z80hpy s7Oa/RX8VaYeY5aPKmXJL56pPDL6oKTs+rTivCwBMrzDL8SZwITeVZrVbeYRTA+fQ8DW EUQ/eEFNV+N4SWBvPfUwVOno/CqdKlPpR7Q2gPxpaKJWlidGPevL6L2lDPjj0Paijn4j FLQKHISShW7D9MYrBxHBegP0357WNXCxJ/8k0UmBdWC6udXivEh87U1IwOMNrxQDi/KW Ywvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=Rq+Eruv3Qd0TWM80jjxXW4SgCxhvn3VSC9o6K+mBuuk=; b=fHbHOl6RxhAQpN05NllTBEf2l67qL87JsTM0dbbRyraGJf9PDKKKxGXJiI26C9XZwg a3Evctf2LLgxI+GmPnkDcDD3BlhoD8RORpbQL4HrX0o5LJIZw0pXWeYPGLsnDW7e7c/v aprAkhnkQcD7S36tCv6qu+fnar69LqF4qDca2CXFBg02xWTeCN1MIavGBfdl1J0U2yju qqNyGE7C4z9qcnCsPz547nwQN+oqNY05ptYUgFTlqMHs7YbfHky1FI3H0oGmQIcRypoj /0ZCsPhTrt/WfyHidgWfsuYeEJt8e24AfaSmEnDgmB+WxFQ1eiyxdn9lQem8+bhImCP9 nzPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si16387903plr.161.2019.09.03.20.50.23; Tue, 03 Sep 2019 20:50:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728272AbfIDDtf (ORCPT + 99 others); Tue, 3 Sep 2019 23:49:35 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:55846 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727065AbfIDDtb (ORCPT ); Tue, 3 Sep 2019 23:49:31 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 41C8D45A5D8D834E0208; Wed, 4 Sep 2019 11:49:30 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.439.0; Wed, 4 Sep 2019 11:49:20 +0800 From: zhong jiang To: , , CC: , , Subject: [PATCH 2/3] nfp: Drop unnecessary continue in nfp_net_pf_alloc_vnics Date: Wed, 4 Sep 2019 11:46:23 +0800 Message-ID: <1567568784-9669-3-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1567568784-9669-1-git-send-email-zhongjiang@huawei.com> References: <1567568784-9669-1-git-send-email-zhongjiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Continue is not needed at the bottom of a loop. Signed-off-by: zhong jiang --- drivers/net/ethernet/netronome/nfp/nfp_net_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_main.c b/drivers/net/ethernet/netronome/nfp/nfp_net_main.c index 986464d..68db47d 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_main.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_main.c @@ -205,10 +205,8 @@ static void nfp_net_pf_free_vnics(struct nfp_pf *pf) ctrl_bar += NFP_PF_CSR_SLICE_SIZE; /* Kill the vNIC if app init marked it as invalid */ - if (nn->port && nn->port->type == NFP_PORT_INVALID) { + if (nn->port && nn->port->type == NFP_PORT_INVALID) nfp_net_pf_free_vnic(pf, nn); - continue; - } } if (list_empty(&pf->vnics)) -- 1.7.12.4