diff options
author | Joe Perches <joe@perches.com> | 2010-11-15 06:12:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-17 13:36:50 -0500 |
commit | c04914af6861d62df303aeedbbe554972ce4e736 (patch) | |
tree | 47e835b36264498574a6e09e8d1032ece0cbcdfc /drivers/net | |
parent | a17531fa4c951f32ca4f90b04ca42cfb11924098 (diff) |
drivers/net/bonding: Remove unnecessary casts of netdev_priv
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/bonding/bond_3ad.c | 3 | ||||
-rw-r--r-- | drivers/net/bonding/bonding.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/bonding/bond_3ad.c b/drivers/net/bonding/bond_3ad.c index 881914bc4e9c..48cf24ff4e6f 100644 --- a/drivers/net/bonding/bond_3ad.c +++ b/drivers/net/bonding/bond_3ad.c | |||
@@ -2474,8 +2474,7 @@ int bond_3ad_lacpdu_recv(struct sk_buff *skb, struct net_device *dev, struct pac | |||
2474 | goto out; | 2474 | goto out; |
2475 | 2475 | ||
2476 | read_lock(&bond->lock); | 2476 | read_lock(&bond->lock); |
2477 | slave = bond_get_slave_by_dev((struct bonding *)netdev_priv(dev), | 2477 | slave = bond_get_slave_by_dev(netdev_priv(dev), orig_dev); |
2478 | orig_dev); | ||
2479 | if (!slave) | 2478 | if (!slave) |
2480 | goto out_unlock; | 2479 | goto out_unlock; |
2481 | 2480 | ||
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index 4eedb12df6ca..ad3ae46a4c01 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h | |||
@@ -286,7 +286,7 @@ static inline struct bonding *bond_get_bond_by_slave(struct slave *slave) | |||
286 | return NULL; | 286 | return NULL; |
287 | } | 287 | } |
288 | 288 | ||
289 | return (struct bonding *)netdev_priv(slave->dev->master); | 289 | return netdev_priv(slave->dev->master); |
290 | } | 290 | } |
291 | 291 | ||
292 | static inline bool bond_is_lb(const struct bonding *bond) | 292 | static inline bool bond_is_lb(const struct bonding *bond) |