Files
linux/drivers
Wang Chen faf3994a9f airo: Kill directly reference of netdev->priv
We have some reasons to kill netdev->priv:
1. netdev->priv is equal to netdev_priv().
2. netdev_priv() wraps the calculation of netdev->priv's offset, obviously
   netdev_priv() is more flexible than netdev->priv.
But we cann't kill netdev->priv, because so many drivers reference to it
directly.

OK, becasue Dave S. Miller said, "every direct netdev->priv usage is a bug",
and I want to kill netdev->priv later, I decided to convert all the direct
reference of netdev->priv first.

In this driver, I don't simply use netdev_priv() to replace netdev->priv.

The reason is:
Pointer netdev->priv was changed in this driver, but it shouldn't.
Because the memory was allocated when alloc_netdev() and netdev->priv
should always point to that memory.

So I use netdev->ml_priv to replace netdev->priv.
After replacing, both ai and ai->wifidev->ml_priv point to the same memory.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Cc: John W. Linville <linville@tuxdriver.com>
Cc: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-10-31 19:00:22 -04:00
..
2008-10-21 07:48:21 -04:00
2008-10-26 10:27:01 +01:00
2008-10-31 00:56:00 -07:00
2008-10-22 01:19:39 +02:00
2008-10-30 15:55:47 +01:00
2008-10-26 09:35:05 -07:00
2008-10-31 00:56:00 -07:00
2008-10-27 17:47:26 -07:00
2008-10-21 07:48:33 -04:00
2008-10-16 11:21:30 -07:00
2008-10-21 15:49:55 +11:00
2008-10-23 00:11:07 -04:00
2008-10-31 00:56:00 -07:00
2008-10-20 08:52:36 -07:00
2008-10-28 21:47:17 +00:00