Skip to contentSkip to conversation

bond: Kill directly reference of netdev->priv

PATCH Applied Wang Chen 2 participants 2 messages Dec 2, 2008 – Dec 4, 2008

Subsystems (3)
lore
Share & tools
lore

Wang Chen

author
#0 lore raw

PATCH 1/1 bond: Kill directly reference of netdev->priv

Simply replace netdev->priv with netdev_priv().

---
 drivers/net/bonding/bond_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/bonding/bond_main.c +1 -1
index a339a80..e422dba 100644
@@ -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);
Signature · 1 line
1.5.3.4