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: Xinming Hu <huxm@marvell.com> Signed-off-by: Cathy Luo <cluo@marvell.com> Reviewed-by: Dmitry Torokhov <dtor@chromium.org> Reviewed-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
7e2f18f064
commit
625b4dba57
|
@ -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);
|
||||
}
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue