Skip to content

Commit

Permalink
bonding: remove unused variable "found"
Browse files Browse the repository at this point in the history
Signed-off-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Jiri Pirko authored and davem330 committed Jun 2, 2010
1 parent 3711210 commit 6458590
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/bonding/bond_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down

0 comments on commit 6458590

Please sign in to comment.