diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-06-18 12:44:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-18 22:08:39 +0300 |
commit | c44924c532fb9bb80b48d141a0f8391e9c280112 (patch) | |
tree | 223107cad1f7a912a1453d0b389aa25745a8ae13 /drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c | |
parent | bd70957438f0cc4879cbdff8bbc8614bc1cddf49 (diff) | |
download | linux-c44924c532fb9bb80b48d141a0f8391e9c280112.tar.xz |
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/stmmac/stmmac_tc.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c | 4 |
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) |