From: stephen hemminger Date: Wed, 23 Feb 2011 07:40:33 +0000 (+0000) Subject: bonding: fix sparse warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4ec952b8ab636e87465ed78a1ca5fa5efe0d5e0f;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git bonding: fix sparse warning Fix use of zero where NULL expected. And wrap long line. Signed-off-by: Stephen Hemminger Signed-off-by: Jay Vosburgh Signed-off-by: David S. Miller --- diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index a401b8df84f..ff4e2698022 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)