projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3480c63
)
[BOND]: Fix warning in bond_sysfs.c
author
David S. Miller
<davem@davemloft.net>
Fri, 28 Mar 2008 23:15:38 +0000
(16:15 -0700)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/bonding/bond_sysfs.c
b/drivers/net/bonding/bond_sysfs.c
index 90a1f31e8e637bd104a09490b8d05db80b0b5acc..979c2d05ff9c91c19ab7dbee9964cfc608afc299 100644
(file)
--- 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;