]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mlxsw: spectrum_router: remove redundant continue statement
authorColin Ian King <colin.king@canonical.com>
Wed, 16 Jun 2021 13:02:58 +0000 (14:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 19:46:21 +0000 (12:46 -0700)
The continue statement at the end of a for-loop has no effect,
remove it.

Addresses-Coverity: ("Continue has no effect")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c

index bc47ed76687862277b4c94cbcb0a0b3205dc236e..7e221ef014376ce8b300bad1c289ce4811743f14 100644 (file)
@@ -5407,7 +5407,6 @@ mlxsw_sp_rt6_nexthop(struct mlxsw_sp_nexthop_group *nh_grp,
                    ipv6_addr_equal((const struct in6_addr *) &nh->gw_addr,
                                    &rt->fib6_nh->fib_nh_gw6))
                        return nh;
-               continue;
        }
 
        return NULL;