net: stmmac: remove redundant continue statement
authorColin Ian King <colin.king@canonical.com>
Fri, 18 Jun 2021 09:44:25 +0000 (10:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jun 2021 19:08:39 +0000 (12:08 -0700)
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>
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c

index 4e70efc..92dab60 100644 (file)
@@ -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)