aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmdresp.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-15 01:52:54 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:07:31 -0500
commit183aeac1c49869ba9a14c7ead86ce268da397a0e (patch)
treeed78bb49daf3570b5b99a1d93408261b9680478e /drivers/net/wireless/libertas/cmdresp.c
parentc4ab41272b55a08741d2e68966aae700e2e6d597 (diff)
libertas: introduce and use lbs_complete_command() for command completion
Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmdresp.c')
-rw-r--r--drivers/net/wireless/libertas/cmdresp.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c
index a809f8f9997b..89f83165e04f 100644
--- a/drivers/net/wireless/libertas/cmdresp.c
+++ b/drivers/net/wireless/libertas/cmdresp.c
@@ -717,8 +717,7 @@ int lbs_process_rx_command(struct lbs_private *priv)
717 lbs_deb_host("CMD_RESP: PS action 0x%X\n", action); 717 lbs_deb_host("CMD_RESP: PS action 0x%X\n", action);
718 } 718 }
719 719
720 __lbs_cleanup_and_insert_cmd(priv, priv->cur_cmd); 720 lbs_complete_command(priv, priv->cur_cmd, result);
721 priv->cur_cmd = NULL;
722 spin_unlock_irqrestore(&priv->driver_lock, flags); 721 spin_unlock_irqrestore(&priv->driver_lock, flags);
723 722
724 ret = 0; 723 ret = 0;
@@ -739,9 +738,7 @@ int lbs_process_rx_command(struct lbs_private *priv)
739 break; 738 break;
740 739
741 } 740 }
742 741 lbs_complete_command(priv, priv->cur_cmd, result);
743 __lbs_cleanup_and_insert_cmd(priv, priv->cur_cmd);
744 priv->cur_cmd = NULL;
745 spin_unlock_irqrestore(&priv->driver_lock, flags); 742 spin_unlock_irqrestore(&priv->driver_lock, flags);
746 743
747 ret = -1; 744 ret = -1;
@@ -760,8 +757,7 @@ int lbs_process_rx_command(struct lbs_private *priv)
760 757
761 if (priv->cur_cmd) { 758 if (priv->cur_cmd) {
762 /* Clean up and Put current command back to cmdfreeq */ 759 /* Clean up and Put current command back to cmdfreeq */
763 __lbs_cleanup_and_insert_cmd(priv, priv->cur_cmd); 760 lbs_complete_command(priv, priv->cur_cmd, result);
764 priv->cur_cmd = NULL;
765 } 761 }
766 spin_unlock_irqrestore(&priv->driver_lock, flags); 762 spin_unlock_irqrestore(&priv->driver_lock, flags);
767 763