mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 17:41:44 +00:00
bond: Kill directly reference of netdev->priv
Simply replace netdev->priv with netdev_priv(). Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
97341249c4
commit
244ef9b917
@ -1992,7 +1992,7 @@ void bond_destroy(struct bonding *bond)
|
||||
|
||||
static void bond_destructor(struct net_device *bond_dev)
|
||||
{
|
||||
struct bonding *bond = bond_dev->priv;
|
||||
struct bonding *bond = netdev_priv(bond_dev);
|
||||
|
||||
if (bond->wq)
|
||||
destroy_workqueue(bond->wq);
|
||||
|
Loading…
Reference in New Issue
Block a user