nfp: Drop unnecessary continue in nfp_net_pf_alloc_vnics
authorzhong jiang <zhongjiang@huawei.com>
Wed, 4 Sep 2019 03:46:23 +0000 (11:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Sep 2019 12:58:21 +0000 (14:58 +0200)
Continue is not needed at the bottom of a loop.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_main.c

index 986464d..68db47d 100644 (file)
@@ -205,10 +205,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;
-               }
        }
 
        if (list_empty(&pf->vnics))