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

Commit 625b4dba authored by Xinming Hu's avatar Xinming Hu Committed by Kalle Valo
Browse files

mwifiex: remove unnecessary wakeup interrupt number sanity check



If wakeup interrupt handler is called, we know that the wakeup
interrupt number is valid, there is no need to check it.

Signed-off-by: default avatarXinming Hu <huxm@marvell.com>
Signed-off-by: default avatarCathy Luo <cluo@marvell.com>
Reviewed-by: default avatarDmitry Torokhov <dtor@chromium.org>
Reviewed-by: default avatarBrian Norris <briannorris@chromium.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 7e2f18f0
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -1514,11 +1514,9 @@ static irqreturn_t mwifiex_irq_wakeup_handler(int irq, void *priv)
{
	struct mwifiex_adapter *adapter = priv;

	if (adapter->irq_wakeup >= 0) {
	dev_dbg(adapter->dev, "%s: wake by wifi", __func__);
	adapter->wake_by_wifi = true;
	disable_irq_nosync(irq);
	}

	/* Notify PM core we are wakeup source */
	pm_wakeup_event(adapter->dev, 0);