mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 21:24:08 +08:00
net/atm: Remove unnecessary casts of netdev_priv
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ece49153b6
commit
37d6680042
@ -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)
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user