mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 14:32:23 +00:00
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: Colin Ian King <colin.king@canonical.com> Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c44924c532
commit
040c12570e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user