summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r--drivers/net/wireless/libertas/main.c5
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)
le16_to_cpu(cmdnode->cmdbuf->command));
lbs_complete_command(priv, cmdnode, -ETIMEDOUT);
priv->nr_retries = 0;
- if (priv->reset_card) {
- spin_unlock_irq(&priv->driver_lock);
+ if (priv->reset_card)
priv->reset_card(priv);
- spin_lock_irq(&priv->driver_lock);
- }
} else {
priv->cur_cmd = NULL;
lbs_pr_info("requeueing command 0x%04x due "
OpenPOWER on IntegriCloud