summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_sysfs.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-05-17 05:49:54 +0200
committerDavid S. Miller <davem@davemloft.net>2010-06-02 12:39:40 +0200
commit64585909996de7deaf8aa5cf7629d775b16ee417 (patch)
tree9b1f05644532feb1bbcc3b448087cc389a619933 /drivers/net/bonding/bond_sysfs.c
parentnet: QDISC_STATE_RUNNING dont need atomic bit ops (diff)
downloadlinux-64585909996de7deaf8aa5cf7629d775b16ee417.tar.xz
linux-64585909996de7deaf8aa5cf7629d775b16ee417.zip
bonding: remove unused variable "found"
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_sysfs.c')
-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,
{
char command[IFNAMSIZ + 1] = { 0, };
char *ifname;
- int i, res, found, ret = count;
+ int i, res, ret = count;
u32 original_mtu;
struct slave *slave;
struct net_device *dev = NULL;
@@ -245,7 +245,6 @@ static ssize_t bonding_store_slaves(struct device *d,
if (command[0] == '+') {
/* Got a slave name in ifname. Is it already in the list? */
- found = 0;
dev = __dev_get_by_name(dev_net(bond->dev), ifname);
if (!dev) {