netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 2/4] drivers/net/bonding/bond_sysfs.c: suppress uninitialized var warning
@ 2008-03-28 21:37 akpm
  2008-03-28 23:16 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2008-03-28 21:37 UTC (permalink / raw)
  To: davem; +Cc: netdev, akpm, fubar

From: Andrew Morton <akpm@linux-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@us.ibm.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-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);
_

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-28 23:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 21:37 [patch 2/4] drivers/net/bonding/bond_sysfs.c: suppress uninitialized var warning akpm
2008-03-28 23:16 ` 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).