summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bonding.h
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2011-02-23 07:40:33 +0000
committerDavid S. Miller <davem@davemloft.net>2011-02-28 12:39:58 -0800
commit4ec952b8ab636e87465ed78a1ca5fa5efe0d5e0f (patch)
tree20b4dc6b8364aaa8b6315e93e3a680d9ab68bc54 /drivers/net/bonding/bonding.h
parenta693e69897e7811e2790295f38a0ce3a92c4b45c (diff)
downloadlinux-4ec952b8ab636e87465ed78a1ca5fa5efe0d5e0f.tar.bz2
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/net/bonding/bonding.h')
-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 {
*
* Caller must hold bond lock for read
*/
-static inline struct slave *bond_get_slave_by_dev(struct bonding *bond, struct net_device *slave_dev)
+static inline struct slave *bond_get_slave_by_dev(struct bonding *bond,
+ struct net_device *slave_dev)
{
struct slave *slave = NULL;
int i;
@@ -280,7 +281,7 @@ static inline struct slave *bond_get_slave_by_dev(struct bonding *bond, struct n
}
}
- return 0;
+ return NULL;
}
static inline struct bonding *bond_get_bond_by_slave(struct slave *slave)