Skip to content

Commit

Permalink
[BOND]: Fix warning in bond_sysfs.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Mar 28, 2008
1 parent 3480c63 commit 6952d89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/bonding/bond_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6952d89

Please sign in to comment.