aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-05-16 23:49:54 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-02 06:39:40 -0400
commit64585909996de7deaf8aa5cf7629d775b16ee417 (patch)
tree9b1f05644532feb1bbcc3b448087cc389a619933
parent371121057607e3127e19b3fa094330181b5b031e (diff)
bonding: remove unused variable "found"
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/bonding/bond_sysfs.c3
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) {