net/atm: Remove unnecessary casts of netdev_priv
authorJoe Perches <joe@perches.com>
Mon, 15 Nov 2010 11:12:33 +0000 (11:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Nov 2010 18:37:52 +0000 (10:37 -0800)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/atm/br2684.c
net/atm/lec.c

index ad2b232a2055fbc241828832078087c62e4c4315..fce2eae8d47697ba4e4a6ce1deea8e3359112539 100644 (file)
@@ -97,7 +97,7 @@ static LIST_HEAD(br2684_devs);
 
 static inline struct br2684_dev *BRPRIV(const struct net_device *net_dev)
 {
-       return (struct br2684_dev *)netdev_priv(net_dev);
+       return netdev_priv(net_dev);
 }
 
 static inline struct net_device *list_entry_brdev(const struct list_head *le)
index 181d70c73d708bd730f49e4b61f88ac72e373a20..179e04bc99dd8ee00cd8bb9e1b10efa01bb48de4 100644 (file)
@@ -816,8 +816,7 @@ static int lec_mcast_attach(struct atm_vcc *vcc, int arg)
        if (arg < 0 || arg >= MAX_LEC_ITF || !dev_lec[arg])
                return -EINVAL;
        vcc->proto_data = dev_lec[arg];
-       return lec_mcast_make((struct lec_priv *)netdev_priv(dev_lec[arg]),
-                               vcc);
+       return lec_mcast_make(netdev_priv(dev_lec[arg]), vcc);
 }
 
 /* Initialize device. */