diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/bonding/bond_sysfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index b8bec086daa1..392e29115c3c 100644 --- a/drivers/net/bonding/bond_sysfs.c +++ b/drivers/net/bonding/bond_sysfs.c | |||
@@ -219,7 +219,7 @@ static ssize_t bonding_store_slaves(struct device *d, | |||
219 | { | 219 | { |
220 | char command[IFNAMSIZ + 1] = { 0, }; | 220 | char command[IFNAMSIZ + 1] = { 0, }; |
221 | char *ifname; | 221 | char *ifname; |
222 | int i, res, found, ret = count; | 222 | int i, res, ret = count; |
223 | u32 original_mtu; | 223 | u32 original_mtu; |
224 | struct slave *slave; | 224 | struct slave *slave; |
225 | struct net_device *dev = NULL; | 225 | struct net_device *dev = NULL; |
@@ -245,7 +245,6 @@ static ssize_t bonding_store_slaves(struct device *d, | |||
245 | if (command[0] == '+') { | 245 | if (command[0] == '+') { |
246 | 246 | ||
247 | /* Got a slave name in ifname. Is it already in the list? */ | 247 | /* Got a slave name in ifname. Is it already in the list? */ |
248 | found = 0; | ||
249 | 248 | ||
250 | dev = __dev_get_by_name(dev_net(bond->dev), ifname); | 249 | dev = __dev_get_by_name(dev_net(bond->dev), ifname); |
251 | if (!dev) { | 250 | if (!dev) { |