diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2008-05-23 04:07:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-03 15:00:15 -0400 |
commit | b43441a49d1c64769ff90f34e9543b2ba840b517 (patch) | |
tree | 77bc15646d3728155555bac3534989b8a397695b /drivers/net/wireless/libertas/main.c | |
parent | 23c0752a25d73ccc4547700e8a57d5ae2f2edf56 (diff) |
libertas: don't spin_unlock_irq() twice
priv->driver_lock has already been unlocked some lines above. This patch
fixes the sparse warning:
drivers/net/wireless/libertas/main.c:792:6: warning: context problem in 'lbs_thread': '_spin_unlock_irq' expected different context
drivers/net/wireless/libertas/main.c:792:6: context 'lock': wanted >= 1, got 0
Signed-of-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
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.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index baafa44cfb30..0cd4702d2f76 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -788,11 +788,8 @@ static int lbs_thread(void *data) | |||
788 | le16_to_cpu(cmdnode->cmdbuf->command)); | 788 | le16_to_cpu(cmdnode->cmdbuf->command)); |
789 | lbs_complete_command(priv, cmdnode, -ETIMEDOUT); | 789 | lbs_complete_command(priv, cmdnode, -ETIMEDOUT); |
790 | priv->nr_retries = 0; | 790 | priv->nr_retries = 0; |
791 | if (priv->reset_card) { | 791 | if (priv->reset_card) |
792 | spin_unlock_irq(&priv->driver_lock); | ||
793 | priv->reset_card(priv); | 792 | priv->reset_card(priv); |
794 | spin_lock_irq(&priv->driver_lock); | ||
795 | } | ||
796 | } else { | 793 | } else { |
797 | priv->cur_cmd = NULL; | 794 | priv->cur_cmd = NULL; |
798 | lbs_pr_info("requeueing command 0x%04x due " | 795 | lbs_pr_info("requeueing command 0x%04x due " |