]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
drivers/net/bonding: Remove unnecessary casts of netdev_priv
authorJoe Perches <joe@perches.com>
Mon, 15 Nov 2010 11:12:25 +0000 (11:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Nov 2010 18:36:50 +0000 (10:36 -0800)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bonding.h

index 881914bc4e9c0177a371c76c9781568aa0b4ffdd..48cf24ff4e6fe5e3d4762a2ad40f76ae91f14e29 100644 (file)
@@ -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;
 
index 4eedb12df6caf2e4676cbe11e2134e97ec01def1..ad3ae46a4c0110d05f26f3644c6caa403f7ee36e 100644 (file)
@@ -286,7 +286,7 @@ static inline struct bonding *bond_get_bond_by_slave(struct slave *slave)
                return NULL;
        }
 
-       return (struct bonding *)netdev_priv(slave->dev->master);
+       return netdev_priv(slave->dev->master);
 }
 
 static inline bool bond_is_lb(const struct bonding *bond)