diff options
Diffstat (limited to 'drivers/net/bonding/bonding.h')
-rw-r--r-- | drivers/net/bonding/bonding.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index c6fdd851579a..c867cf901f9f 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h | |||
@@ -240,11 +240,11 @@ static inline struct slave *bond_get_slave_by_dev(struct bonding *bond, struct n | |||
240 | 240 | ||
241 | bond_for_each_slave(bond, slave, i) { | 241 | bond_for_each_slave(bond, slave, i) { |
242 | if (slave->dev == slave_dev) { | 242 | if (slave->dev == slave_dev) { |
243 | break; | 243 | return slave; |
244 | } | 244 | } |
245 | } | 245 | } |
246 | 246 | ||
247 | return slave; | 247 | return 0; |
248 | } | 248 | } |
249 | 249 | ||
250 | static inline struct bonding *bond_get_bond_by_slave(struct slave *slave) | 250 | static inline struct bonding *bond_get_bond_by_slave(struct slave *slave) |