Skip to content

Commit

Permalink
p54spi: Remove FIXME in op_stop
Browse files Browse the repository at this point in the history
Don't use the interruptible variant of mutex_lock(). It doesn't really
need to be interruptible. This avoids nasty error handling.

Signed-off-by: Michael Buesch <[email protected]>
Acked-by: Christian Lamparter <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
mbuesch authored and linvjw committed Nov 17, 2011
1 parent fcac4fb commit 7adb92f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/net/wireless/p54/p54spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,7 @@ static void p54spi_op_stop(struct ieee80211_hw *dev)
struct p54s_priv *priv = dev->priv;
unsigned long flags;

if (mutex_lock_interruptible(&priv->mutex)) {
/* FIXME: how to handle this error? */
return;
}

mutex_lock(&priv->mutex);
WARN_ON(priv->fw_state != FW_STATE_READY);

cancel_work_sync(&priv->work);
Expand Down

0 comments on commit 7adb92f

Please sign in to comment.