Commit 040c1257 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

net: bridge: remove redundant continue statement



The continue statement at the end of a for-loop has no effect,
invert the if expression and remove the continue.

Addresses-Coverity: ("Continue has no effect")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarNikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c44924c5
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -113,9 +113,7 @@ static void __vlan_add_list(struct net_bridge_vlan *v)
	headp = &vg->vlan_list;
	list_for_each_prev(hpos, headp) {
		vent = list_entry(hpos, struct net_bridge_vlan, vlist);
		if (v->vid < vent->vid)
			continue;
		else
		if (v->vid >= vent->vid)
			break;
	}
	list_add_rcu(&v->vlist, hpos);