diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-05-25 13:05:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-06-11 14:28:40 -0400 |
commit | 634b8f49c11f49272b09d13a34b22a17b8c3d419 (patch) | |
tree | 75ccd1d8160390235ada42d1c311710534392a02 /drivers/net/wireless/libertas/cmd.c | |
parent | ec3eef28d9bc3fbcc5d3dd668dffcaa675015b11 (diff) |
[PATCH] libertas: remove unused variables in wlan_dev_t
Actually, this patch removev wlan_dev_t totally and puts the used variables
of it directly into wlan_private. That reduces one level of indirection and
looks a little bit simpler. It's now "priv->card" and not
"priv->wlan_dev.card" and "priv->dev" instead of "priv->wlan_dev.netdev"
Changed two occurences of "((wlan_private *) dev->priv)->wlan_dev.netdev"
into "dev", because I didn't see the point in doing pointer-ping-pong.
The variables "ioport", "upld_rcv" and "upld_type" where unused. They have
been removed.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index c6e50195d65c..5aaeb91418b4 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -1823,7 +1823,7 @@ void libertas_send_iwevcustom_event(wlan_private * priv, s8 * str) | |||
1823 | lbs_deb_cmd("Event Indication String length = %d\n", iwrq.data.length); | 1823 | lbs_deb_cmd("Event Indication String length = %d\n", iwrq.data.length); |
1824 | 1824 | ||
1825 | lbs_deb_cmd("Sending wireless event IWEVCUSTOM for %s\n", str); | 1825 | lbs_deb_cmd("Sending wireless event IWEVCUSTOM for %s\n", str); |
1826 | wireless_send_event(priv->wlan_dev.netdev, IWEVCUSTOM, &iwrq, buf); | 1826 | wireless_send_event(priv->dev, IWEVCUSTOM, &iwrq, buf); |
1827 | 1827 | ||
1828 | lbs_deb_leave(LBS_DEB_CMD); | 1828 | lbs_deb_leave(LBS_DEB_CMD); |
1829 | } | 1829 | } |
@@ -1842,7 +1842,7 @@ static int sendconfirmsleep(wlan_private * priv, u8 * cmdptr, u16 size) | |||
1842 | lbs_dbg_hex("SEND_SLEEPC_CMD: Sleep confirm command", cmdptr, size); | 1842 | lbs_dbg_hex("SEND_SLEEPC_CMD: Sleep confirm command", cmdptr, size); |
1843 | 1843 | ||
1844 | ret = priv->hw_host_to_card(priv, MVMS_CMD, cmdptr, size); | 1844 | ret = priv->hw_host_to_card(priv, MVMS_CMD, cmdptr, size); |
1845 | priv->wlan_dev.dnld_sent = DNLD_RES_RECEIVED; | 1845 | priv->dnld_sent = DNLD_RES_RECEIVED; |
1846 | 1846 | ||
1847 | spin_lock_irqsave(&adapter->driver_lock, flags); | 1847 | spin_lock_irqsave(&adapter->driver_lock, flags); |
1848 | if (adapter->intcounter || adapter->currenttxskb) | 1848 | if (adapter->intcounter || adapter->currenttxskb) |
@@ -1926,7 +1926,7 @@ void libertas_ps_confirm_sleep(wlan_private * priv, u16 psmode) | |||
1926 | 1926 | ||
1927 | lbs_deb_enter(LBS_DEB_CMD); | 1927 | lbs_deb_enter(LBS_DEB_CMD); |
1928 | 1928 | ||
1929 | if (priv->wlan_dev.dnld_sent) { | 1929 | if (priv->dnld_sent) { |
1930 | allowed = 0; | 1930 | allowed = 0; |
1931 | lbs_deb_cmd("D"); | 1931 | lbs_deb_cmd("D"); |
1932 | } | 1932 | } |