aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2011-02-23 02:40:33 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-28 15:39:58 -0500
commit4ec952b8ab636e87465ed78a1ca5fa5efe0d5e0f (patch)
tree20b4dc6b8364aaa8b6315e93e3a680d9ab68bc54 /drivers
parenta693e69897e7811e2790295f38a0ce3a92c4b45c (diff)
bonding: fix sparse warning
Fix use of zero where NULL expected. And wrap long line. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Jay Vosburgh <fubar@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/bonding/bonding.h5
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 */
272static inline struct slave *bond_get_slave_by_dev(struct bonding *bond, struct net_device *slave_dev) 272static 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
286static inline struct bonding *bond_get_bond_by_slave(struct slave *slave) 287static inline struct bonding *bond_get_bond_by_slave(struct slave *slave)