From: Jakub Kicinski <jakub.kicinski@netronome.com>
To: Arushi Singhal <arushisinghal19971997@gmail.com>
Cc: jdmason@kudzu.us, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, oss-drivers@netronome.com,
outreachy-kernel@googlegroups.com
Subject: [Outreachy kernel] Re: [PATCH v2] net: ethernet: Drop unnecessary continue
Date: Sun, 4 Mar 2018 17:57:13 -0800 [thread overview]
Message-ID: <20180304175713.25a44ac6@cakuba.netronome.com> (raw)
In-Reply-To: <20180303161456.GA20194@seema-Inspiron-15-3567>
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))
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
To post to this group, send email to outreachy-kernel@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20180304175713.25a44ac6%40cakuba.netronome.com.
For more options, visit https://groups.google.com/d/optout.
next prev parent reply other threads:[~2018-03-05 1:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-03 16:14 [Outreachy kernel] " Arushi Singhal
2018-03-05 1:57 ` Jakub Kicinski [this message]
2018-03-07 15:39 ` [Outreachy kernel] " David Miller
2018-03-07 16:52 ` Arushi Singhal
2018-03-07 17:01 ` David Miller
2018-03-07 19:41 ` Julia Lawall
2018-03-08 2:57 ` Arushi Singhal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180304175713.25a44ac6@cakuba.netronome.com \
--to=jakub.kicinski@netronome.com \
--cc=arushisinghal19971997@gmail.com \
--cc=jdmason@kudzu.us \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oss-drivers@netronome.com \
--cc=outreachy-kernel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®