diff options
-rw-r--r-- | drivers/net/bonding/bonding.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index a401b8df84f0..ff4e26980220 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h | |||
@@ -269,7 +269,8 @@ struct bonding { | |||
269 | * | 269 | * |
270 | * Caller must hold bond lock for read | 270 | * Caller must hold bond lock for read |
271 | */ | 271 | */ |
272 | static inline struct slave *bond_get_slave_by_dev(struct bonding *bond, struct net_device *slave_dev) | 272 | static inline struct slave *bond_get_slave_by_dev(struct bonding *bond, |
273 | struct net_device *slave_dev) | ||
273 | { | 274 | { |
274 | struct slave *slave = NULL; | 275 | struct slave *slave = NULL; |
275 | int i; | 276 | int i; |
@@ -280,7 +281,7 @@ static inline struct slave *bond_get_slave_by_dev(struct bonding *bond, struct n | |||
280 | } | 281 | } |
281 | } | 282 | } |
282 | 283 | ||
283 | return 0; | 284 | return NULL; |
284 | } | 285 | } |
285 | 286 | ||
286 | static inline struct bonding *bond_get_bond_by_slave(struct slave *slave) | 287 | static inline struct bonding *bond_get_bond_by_slave(struct slave *slave) |