aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/main.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-15 04:22:52 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:07:35 -0500
commitae125bf8278249b8c44168c5183f551c3ed28b84 (patch)
tree5f86f802b140620f6b01bc7f94702c8dc024e4f8 /drivers/net/wireless/libertas/main.c
parent75567670c66329a111c2b4f12d6c1fc02b3b14d2 (diff)
libertas: store command result in cmdnode instead of priv->cur_cmd_retcode
... at least for users of __lbs_cmd(). Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r--drivers/net/wireless/libertas/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index 0dc7de6a067b..839ffe818c18 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -1237,6 +1237,7 @@ int lbs_stop_card(struct lbs_private *priv)
1237 /* Flush pending command nodes */ 1237 /* Flush pending command nodes */
1238 spin_lock_irqsave(&priv->driver_lock, flags); 1238 spin_lock_irqsave(&priv->driver_lock, flags);
1239 list_for_each_entry(cmdnode, &priv->cmdpendingq, list) { 1239 list_for_each_entry(cmdnode, &priv->cmdpendingq, list) {
1240 cmdnode->result = -ENOENT;
1240 cmdnode->cmdwaitqwoken = 1; 1241 cmdnode->cmdwaitqwoken = 1;
1241 wake_up_interruptible(&cmdnode->cmdwait_q); 1242 wake_up_interruptible(&cmdnode->cmdwait_q);
1242 } 1243 }