[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200803282137.m2SLbUn3011629@imap1.linux-foundation.org>
Date: Fri, 28 Mar 2008 14:37:30 -0700
From: akpm@...ux-foundation.org
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, akpm@...ux-foundation.org, fubar@...ibm.com
Subject: [patch 2/4] drivers/net/bonding/bond_sysfs.c: suppress uninitialized var warning
From: Andrew Morton <akpm@...ux-foundation.org>
drivers/net/bonding/bond_sysfs.c: In function `bonding_store_slaves':
drivers/net/bonding/bond_sysfs.c:250: warning: 'original_mtu' might be used uninitialized in this function
Cc: Jay Vosburgh <fubar@...ibm.com>
Cc: "David S. Miller" <davem@...emloft.net>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
---
drivers/net/bonding/bond_sysfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/net/bonding/bond_sysfs.c~drivers-net-bonding-bond_sysfsc-suppress-uninitialized-var-warning drivers/net/bonding/bond_sysfs.c
--- a/drivers/net/bonding/bond_sysfs.c~drivers-net-bonding-bond_sysfsc-suppress-uninitialized-var-warning
+++ a/drivers/net/bonding/bond_sysfs.c
@@ -247,7 +247,7 @@ static ssize_t bonding_store_slaves(stru
char command[IFNAMSIZ + 1] = { 0, };
char *ifname;
int i, res, found, ret = count;
- u32 original_mtu;
+ u32 uninitialized_var(original_mtu);
struct slave *slave;
struct net_device *dev = NULL;
struct bonding *bond = to_bond(d);
_
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists