mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 13:40:53 +07:00
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>
This commit is contained in:
parent
a17531fa4c
commit
c04914af68
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user