diff options
Diffstat (limited to 'drivers/net/bonding/bond_sysfs.c')
-rw-r--r-- | drivers/net/bonding/bond_sysfs.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index 259ff32cd573..935406aa5f0c 100644 --- a/drivers/net/bonding/bond_sysfs.c +++ b/drivers/net/bonding/bond_sysfs.c | |||
@@ -422,11 +422,6 @@ static ssize_t bonding_store_arp_validate(struct device *d, | |||
422 | bond->dev->name, arp_validate_tbl[new_value].modename, | 422 | bond->dev->name, arp_validate_tbl[new_value].modename, |
423 | new_value); | 423 | new_value); |
424 | 424 | ||
425 | if (!bond->params.arp_validate && new_value) | ||
426 | bond_register_arp(bond); | ||
427 | else if (bond->params.arp_validate && !new_value) | ||
428 | bond_unregister_arp(bond); | ||
429 | |||
430 | bond->params.arp_validate = new_value; | 425 | bond->params.arp_validate = new_value; |
431 | 426 | ||
432 | return count; | 427 | return count; |
@@ -923,7 +918,6 @@ static ssize_t bonding_store_miimon(struct device *d, | |||
923 | bond->dev->name); | 918 | bond->dev->name); |
924 | bond->params.arp_interval = 0; | 919 | bond->params.arp_interval = 0; |
925 | if (bond->params.arp_validate) { | 920 | if (bond->params.arp_validate) { |
926 | bond_unregister_arp(bond); | ||
927 | bond->params.arp_validate = | 921 | bond->params.arp_validate = |
928 | BOND_ARP_VALIDATE_NONE; | 922 | BOND_ARP_VALIDATE_NONE; |
929 | } | 923 | } |