Skip to content

Commit

Permalink
bonding: fix sparse warning
Browse files Browse the repository at this point in the history
Fix use of zero where NULL expected. And wrap long line.

Signed-off-by: Stephen Hemminger <[email protected]>
Signed-off-by: Jay Vosburgh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
stephen hemminger authored and davem330 committed Feb 28, 2011
1 parent a693e69 commit 4ec952b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/bonding/bonding.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 4ec952b

Please sign in to comment.