Received: by 10.223.185.116 with SMTP id b49csp2080996wrg; Sun, 4 Mar 2018 17:58:40 -0800 (PST) X-Google-Smtp-Source: AG47ELuVvDTJKkEj1SMDvn9iu4aqMXdaS4ysaopsEuxEOH0xEB4wK2vAZbeGJ1zI8obCNUCpNu0W X-Received: by 10.101.100.87 with SMTP id s23mr11019894pgv.413.1520215120538; Sun, 04 Mar 2018 17:58:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520215120; cv=none; d=google.com; s=arc-20160816; b=hquNJgwo5uhabHGQ7NS5cVB+Ycs8REB7hv3arsz6M69ST9TLA+9c03ieq+NEdKFKl5 yCwU7Ucc5ZJIVDogAwhnT4yenVs1j5DW7ZE80nZpsGZjKTQMrWzYXzqioCcVzaggzpe5 h0WLp7xAkQggz01bIAfkMHIP4YH9OnMUPwlOfDcAfXfFJUOxVJxWE80txfHV6MLqeyWO eBcE00vuqrpK1swPF/quIIZardjm+0ps+KGBt7m9V61+/YEC0F+nPG2Gf2qNjjcFF3aw mBHHUngr9DyLX5ee5YVmd4hBMpCYDG91ZVvlS+tBPJSgau2vFdFcllVWxXnypTdMHrOh Qs7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:arc-authentication-results; bh=BU7RsmZupkUe75oebmaixL8G1y3csUrVmnPrFnpZPao=; b=I64MbW+vSxTgeQTXsNO9YmViyO47AeW1Z/Pq7+e6idGnzs4dvF4s52QmmH5ODoOUDt H1nt/l7YIdB/M/JpKas7ea64z8PI1hCVTYN3Gbl/ZYfF2WUpkIEK8bP+E95Npa14rylq ZtdJP/51T9bj1lnfTP/9Vro6CR8V3NFZj2w4Ag72npXhUHzybIG75b4jQquMH/6cKOed b6AV4oJ+/e9kcqKR7A/Zz2e0TvIIj34DWNL2DxfMovABrOeceUhRr3FgXf41RocU7rYm QyMMi0BT3dvgtEXugxNtKvsHZR6MNGZpeeAiaA+JI1BSagheFlq0mKdNgwps8pJyuzDK sDYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=18TOPH3+; 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 g11si9380049pfd.272.2018.03.04.17.58.26; Sun, 04 Mar 2018 17:58:40 -0800 (PST) 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; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=18TOPH3+; 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 S932697AbeCEB5a (ORCPT + 99 others); Sun, 4 Mar 2018 20:57:30 -0500 Received: from mail-qk0-f182.google.com ([209.85.220.182]:36343 "EHLO mail-qk0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932645AbeCEB5S (ORCPT ); Sun, 4 Mar 2018 20:57:18 -0500 Received: by mail-qk0-f182.google.com with SMTP id d206so18858012qkb.3 for ; Sun, 04 Mar 2018 17:57:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=BU7RsmZupkUe75oebmaixL8G1y3csUrVmnPrFnpZPao=; b=18TOPH3+9EKU2bERLnaxQjLkaC3g9Yw0y0mjITxi0ZaPrgoKFEp38v00lkgTantG29 03U/pTuNtgsZQLABH+8WfVdzYmrd66GKG1kMa5yLsmS8BXMuC4VzjyWG/FTSh/eocFtd oX78F4RqXXaUTajPpjAIkpU8H3AScFrLQWEfdPOPT1pAbZ6J772o8rF+xEwpJN60w87P GpQPIi2LgJL5yyj/xlpH7FbZfDI0m/Ro1iHdSPxhFBVGAzEeyOoESdnceJbmG8/lyyJ8 d0QlLfkG0FvwppBUZHx9Y+gLK6PpjtjpvqHpP1A3HYLjBg51tjHRT6OIXUW4EaK97ptR t8Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=BU7RsmZupkUe75oebmaixL8G1y3csUrVmnPrFnpZPao=; b=cwPtl1WC7hAKCnEaJFHeiIGbf79G/wyn8nOjJSwnb35Fpas+rkiEC6t65v7ExrkZru yk0TLOZIl/kDC2ifpNkaK+jzsNGSDAPBJHX3ckG67M2YFtPsaGeUDoAM862a6n6VwJdl 3cX+PBkejB0V7sQ8hRale6ggjs37m+94yVPWJZePXPs7LSYLDU98xeTKc+BEPkIBGHRn Ub97LvdEarXMTxTkPWgrinqwTejjlnV5PCikcnklEJ6W0aG/72deK2/0nGzME6lOMV+r /xj776w6ec3gcg2/5wgXlcO6os4lAN6nazhWMa5HiOhVA4HG/gYuLmlhJFCHS/bX0Qob 28HQ== X-Gm-Message-State: AElRT7GHbFuEomy9VROq9rEBjGARqcprnhtBQlCskwYHuXGebSDtRJ8N pIUfoxxwqUDIDhOv/WR72lvuCw== X-Received: by 10.55.136.129 with SMTP id k123mr18992917qkd.296.1520215037608; Sun, 04 Mar 2018 17:57:17 -0800 (PST) Received: from cakuba.netronome.com ([75.53.12.129]) by smtp.gmail.com with ESMTPSA id p25sm8714788qte.29.2018.03.04.17.57.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 Mar 2018 17:57:17 -0800 (PST) Date: Sun, 4 Mar 2018 17:57:13 -0800 From: Jakub Kicinski To: Arushi Singhal Cc: jdmason@kudzu.us, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, oss-drivers@netronome.com, outreachy-kernel@googlegroups.com Subject: Re: [PATCH v2] net: ethernet: Drop unnecessary continue Message-ID: <20180304175713.25a44ac6@cakuba.netronome.com> In-Reply-To: <20180303161456.GA20194@seema-Inspiron-15-3567> References: <20180303161456.GA20194@seema-Inspiron-15-3567> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 3 Mar 2018 21:44:56 +0530, Arushi Singhal wrote: > diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_main.c b/drivers/net/ethernet/netronome/nfp/nfp_net_main.c > index 15fa47f..5cd4f3f 100644 > --- a/drivers/net/ethernet/netronome/nfp/nfp_net_main.c > +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_main.c > @@ -258,10 +258,8 @@ nfp_net_pf_alloc_vnics(struct nfp_pf *pf, void __iomem *ctrl_bar, > 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; > - } This is an error handling path so the continue makes sense here to indicate the processing can't ever fall through if more statements are ever added to the loop. But OK. > } > > if (list_empty(&pf->vnics))