* [PATCH net-next-2.6] bonding: remove unused variable "found"
@ 2010-05-17 13:49 Jiri Pirko
2010-06-02 10:40 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Jiri Pirko @ 2010-05-17 13:49 UTC (permalink / raw)
To: netdev; +Cc: davem
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c
index b8bec08..392e291 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) {
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next-2.6] bonding: remove unused variable "found"
2010-05-17 13:49 [PATCH net-next-2.6] bonding: remove unused variable "found" Jiri Pirko
@ 2010-06-02 10:40 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-06-02 10:40 UTC (permalink / raw)
To: jpirko; +Cc: netdev
From: Jiri Pirko <jpirko@redhat.com>
Date: Mon, 17 May 2010 15:49:54 +0200
>
> Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-02 10:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-17 13:49 [PATCH net-next-2.6] bonding: remove unused variable "found" Jiri Pirko
2010-06-02 10:40 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).