diff options
author | Wang Chen <wangchen@cn.fujitsu.com> | 2008-09-05 11:28:47 +0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-10 15:10:15 -0500 |
commit | 4ceb7b6ae2cf5b6e32c403a11bb54081bf8f8b83 (patch) | |
tree | f4e7142915e2a458e010b6f8599de4e9e96d0ad1 /drivers/ieee1394 | |
parent | f400923735ecbb67cbe4a3606c9479f694754f51 (diff) |
netdevice libertas: Fix 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.
Different to readonly reference of netdev->priv, in this driver, netdev->priv
was changed. I use netdev->ml_priv to replace netdev->priv.
Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/ieee1394')
0 files changed, 0 insertions, 0 deletions