Skip to content

Commit

Permalink
bond: Kill directly reference of netdev->priv
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wang Chen authored and David S. Miller committed Dec 4, 2008
1 parent 9734124 commit 244ef9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 244ef9b

Please sign in to comment.