浏览代码

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>
Wang Chen 16 年之前
父节点
当前提交
244ef9b917
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/net/bonding/bond_main.c

+ 1 - 1
drivers/net/bonding/bond_main.c

@@ -1992,7 +1992,7 @@ void bond_destroy(struct bonding *bond)
 
 
 static void bond_destructor(struct net_device *bond_dev)
 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)
 	if (bond->wq)
 		destroy_workqueue(bond->wq);
 		destroy_workqueue(bond->wq);