summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_3ad.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-11-15 11:12:25 +0000
committerDavid S. Miller <davem@davemloft.net>2010-11-17 10:36:50 -0800
commitc04914af6861d62df303aeedbbe554972ce4e736 (patch)
tree47e835b36264498574a6e09e8d1032ece0cbcdfc /drivers/net/bonding/bond_3ad.c
parenta17531fa4c951f32ca4f90b04ca42cfb11924098 (diff)
downloadlinux-c04914af6861d62df303aeedbbe554972ce4e736.tar.bz2
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/bonding/bond_3ad.c')
-rw-r--r--drivers/net/bonding/bond_3ad.c3
1 files changed, 1 insertions, 2 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
goto out;
read_lock(&bond->lock);
- slave = bond_get_slave_by_dev((struct bonding *)netdev_priv(dev),
- orig_dev);
+ slave = bond_get_slave_by_dev(netdev_priv(dev), orig_dev);
if (!slave)
goto out_unlock;