mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
nfp: Drop unnecessary continue in nfp_net_pf_alloc_vnics
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>
This commit is contained in:
parent
0e5b36bc4c
commit
47e2527769
1 changed files with 1 additions and 3 deletions
|
@ -205,10 +205,8 @@ nfp_net_pf_alloc_vnics(struct nfp_pf *pf, void __iomem *ctrl_bar,
|
||||||
ctrl_bar += NFP_PF_CSR_SLICE_SIZE;
|
ctrl_bar += NFP_PF_CSR_SLICE_SIZE;
|
||||||
|
|
||||||
/* Kill the vNIC if app init marked it as invalid */
|
/* 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);
|
nfp_net_pf_free_vnic(pf, nn);
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (list_empty(&pf->vnics))
|
if (list_empty(&pf->vnics))
|
||||||
|
|
Loading…
Add table
Reference in a new issue