From: David S. Miller Date: Fri, 28 Mar 2008 23:15:38 +0000 (-0700) Subject: [BOND]: Fix warning in bond_sysfs.c X-Git-Tag: v2.6.25-rc9~99^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6952d8923bcc8d6b8b43b065cfe9a31bb24f0d58;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git [BOND]: Fix warning in bond_sysfs.c original_mtu is only used if we end up with a non-NULL dev, and it is assigned in all such cases, but GCC can't see that. Signed-off-by: David S. Miller --- diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index 90a1f31..979c2d0 100644 --- a/drivers/net/bonding/bond_sysfs.c +++ b/drivers/net/bonding/bond_sysfs.c @@ -341,6 +341,7 @@ static ssize_t bonding_store_slaves(struct device *d, if (command[0] == '-') { dev = NULL; + original_mtu = 0; bond_for_each_slave(bond, slave, i) if (strnicmp(slave->dev->name, ifname, IFNAMSIZ) == 0) { dev = slave->dev;