From: Colin Ian King Date: Fri, 18 Jun 2021 09:44:25 +0000 (+0100) Subject: net: stmmac: remove redundant continue statement X-Git-Tag: v5.15~843^2~114 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c44924c532fb9bb80b48d141a0f8391e9c280112;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c index 4e70efc..92dab60 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)