Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7adb92fa authored by Michael Buesch's avatar Michael Buesch Committed by John W. Linville
Browse files

p54spi: Remove FIXME in op_stop



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: default avatarMichael Buesch <m@bues.ch>
Acked-by: default avatarChristian Lamparter <chunkeey@googlemail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent fcac4fb0
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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);