Skip to contentSkip to conversation

mlxsw: spectrum_router: remove redundant continue statement

PATCH Applied Colin King 3 participants 3 messages Jun 16, 2021

Subsystems (4)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 mlxsw: spectrum_router: remove redundant continue statement

From: Colin Ian King <[email protected]>

The continue statement at the end of a for-loop has no effect, remove it.

Addresses-Coverity: ("Continue has no effect")

---
 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +0 -1
index bc47ed766878..7e221ef01437 100644
@@ -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;
Signature · 1 line
2.31.1
#2 lore raw
In reply to Colin King
This patch was applied to netdev/net-next.git (refs/heads/master):

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

Quoted 9 lines · On Wed, 16 Jun 2021 14:02:58 +0100 you wrote:

From: Colin Ian King <[email protected]>

The continue statement at the end of a for-loop has no effect, remove it.

Addresses-Coverity: ("Continue has no effect")

[...]

Here is the summary with links:
- mlxsw: spectrum_router: remove redundant continue statement
https://git.kernel.org/netdev/net-next/c/fb0a1dacf2be

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html