diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 5e3b942fb515..2a0039f19377 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -2433,9 +2433,6 @@ static int bond_has_this_ip(struct bonding *bond, __be32 ip) | |||
2433 | if (ip == bond->master_ip) | 2433 | if (ip == bond->master_ip) |
2434 | return 1; | 2434 | return 1; |
2435 | 2435 | ||
2436 | if (list_empty(&bond->vlan_list)) | ||
2437 | return 0; | ||
2438 | |||
2439 | list_for_each_entry(vlan, &bond->vlan_list, vlan_list) { | 2436 | list_for_each_entry(vlan, &bond->vlan_list, vlan_list) { |
2440 | if (ip == vlan->vlan_ip) | 2437 | if (ip == vlan->vlan_ip) |
2441 | return 1; | 2438 | return 1; |
@@ -3495,9 +3492,6 @@ static int bond_inetaddr_event(struct notifier_block *this, unsigned long event, | |||
3495 | } | 3492 | } |
3496 | } | 3493 | } |
3497 | 3494 | ||
3498 | if (list_empty(&bond->vlan_list)) | ||
3499 | continue; | ||
3500 | |||
3501 | list_for_each_entry(vlan, &bond->vlan_list, vlan_list) { | 3495 | list_for_each_entry(vlan, &bond->vlan_list, vlan_list) { |
3502 | vlan_dev = vlan_group_get_device(bond->vlgrp, vlan->vlan_id); | 3496 | vlan_dev = vlan_group_get_device(bond->vlgrp, vlan->vlan_id); |
3503 | if (vlan_dev == event_dev) { | 3497 | if (vlan_dev == event_dev) { |