diff options
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 30b9ea6d62b0..96d7689995cd 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -5199,7 +5199,6 @@ static int __init bonding_init(void) | |||
5199 | { | 5199 | { |
5200 | int i; | 5200 | int i; |
5201 | int res; | 5201 | int res; |
5202 | struct bonding *bond; | ||
5203 | 5202 | ||
5204 | printk(KERN_INFO "%s", version); | 5203 | printk(KERN_INFO "%s", version); |
5205 | 5204 | ||
@@ -5228,13 +5227,6 @@ static int __init bonding_init(void) | |||
5228 | 5227 | ||
5229 | goto out; | 5228 | goto out; |
5230 | err: | 5229 | err: |
5231 | list_for_each_entry(bond, &bond_dev_list, bond_list) { | ||
5232 | bond_work_cancel_all(bond); | ||
5233 | destroy_workqueue(bond->wq); | ||
5234 | } | ||
5235 | |||
5236 | bond_destroy_sysfs(); | ||
5237 | |||
5238 | rtnl_lock(); | 5230 | rtnl_lock(); |
5239 | bond_free_all(); | 5231 | bond_free_all(); |
5240 | rtnl_unlock(); | 5232 | rtnl_unlock(); |