aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-06-18 10:44:25 +0100
committerDavid S. Miller <davem@davemloft.net>2021-06-18 12:08:39 -0700
commitc44924c532fb9bb80b48d141a0f8391e9c280112 (patch)
tree223107cad1f7a912a1453d0b389aa25745a8ae13 /drivers/net/ethernet/stmicro
parentnet: pxa168_eth: Fix a potential data race in pxa168_eth_remove (diff)
downloadlinux-dev-c44924c532fb9bb80b48d141a0f8391e9c280112.tar.xz
linux-dev-c44924c532fb9bb80b48d141a0f8391e9c280112.zip
net: stmmac: remove redundant continue statement
The continue statement in the for-loop has no effect, remove it. Addresses-Coverity: ("Continue has no effect") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
index 4e70efc45458..92dab609d4f8 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
@@ -573,10 +573,8 @@ static int tc_add_flow(struct stmmac_priv *priv,
for (i = 0; i < ARRAY_SIZE(tc_flow_parsers); i++) {
ret = tc_flow_parsers[i].fn(priv, cls, entry);
- if (!ret) {
+ if (!ret)
entry->in_use = true;
- continue;
- }
}
if (!entry->in_use)