diff options
Diffstat (limited to 'drivers/net/bonding/bond_sysfs.c')
-rw-r--r-- | drivers/net/bonding/bond_sysfs.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index 6caac0ffb2f2..3bdb47382521 100644 --- a/drivers/net/bonding/bond_sysfs.c +++ b/drivers/net/bonding/bond_sysfs.c | |||
@@ -350,9 +350,6 @@ static ssize_t bonding_store_slaves(struct device *d, | |||
350 | if (dev) { | 350 | if (dev) { |
351 | printk(KERN_INFO DRV_NAME ": %s: Removing slave %s\n", | 351 | printk(KERN_INFO DRV_NAME ": %s: Removing slave %s\n", |
352 | bond->dev->name, dev->name); | 352 | bond->dev->name, dev->name); |
353 | if (bond->setup_by_slave) | ||
354 | res = bond_release_and_destroy(bond->dev, dev); | ||
355 | else | ||
356 | res = bond_release(bond->dev, dev); | 353 | res = bond_release(bond->dev, dev); |
357 | if (res) { | 354 | if (res) { |
358 | ret = res; | 355 | ret = res; |