aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/p54/p54spi.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/p54/p54spi.c b/drivers/net/wireless/p54/p54spi.c
index f18df82eeb92..a454d487b14f 100644
--- a/drivers/net/wireless/p54/p54spi.c
+++ b/drivers/net/wireless/p54/p54spi.c
@@ -581,11 +581,7 @@ static void p54spi_op_stop(struct ieee80211_hw *dev)
581 struct p54s_priv *priv = dev->priv; 581 struct p54s_priv *priv = dev->priv;
582 unsigned long flags; 582 unsigned long flags;
583 583
584 if (mutex_lock_interruptible(&priv->mutex)) { 584 mutex_lock(&priv->mutex);
585 /* FIXME: how to handle this error? */
586 return;
587 }
588
589 WARN_ON(priv->fw_state != FW_STATE_READY); 585 WARN_ON(priv->fw_state != FW_STATE_READY);
590 586
591 cancel_work_sync(&priv->work); 587 cancel_work_sync(&priv->work);