[BOND]: Fix warning in bond_sysfs.c
authorDavid S. Miller <davem@davemloft.net>
Fri, 28 Mar 2008 23:15:38 +0000 (16:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Mar 2008 23:15:38 +0000 (16:15 -0700)
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 <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c

index 90a1f31e8e637bd104a09490b8d05db80b0b5acc..979c2d05ff9c91c19ab7dbee9964cfc608afc299 100644 (file)
@@ -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;