diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-06-18 11:01:55 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-18 12:08:40 -0700 |
commit | 040c12570e6865b1a219c9d7f7f4a924a6570d1e (patch) | |
tree | d810661e7320bd37f6fc7dc2b808b246e61d5b5a /net/bridge/br_vlan.c | |
parent | c44924c532fb9bb80b48d141a0f8391e9c280112 (diff) |
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>
Diffstat (limited to 'net/bridge/br_vlan.c')
-rw-r--r-- | net/bridge/br_vlan.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/bridge/br_vlan.c b/net/bridge/br_vlan.c index da3256a3eed0..8789a57af543 100644 --- a/net/bridge/br_vlan.c +++ b/net/bridge/br_vlan.c @@ -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); |