All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] mwifiex: remove unnecessary wakeup interrupt number sanity check
@ 2017-03-30  9:19 Xinming Hu
  2017-03-30  9:19 ` [PATCH 2/3] mwifiex: using general print function during device intialization Xinming Hu
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Xinming Hu @ 2017-03-30  9:19 UTC (permalink / raw)
  To: Linux Wireless
  Cc: Kalle Valo, Brian Norris, Dmitry Torokhov, rajatja,
	Amitkumar Karwar, Cathy Luo, Xinming Hu

From: Xinming Hu <huxm@marvell.com>

Sanity check of interrupt number in interrupt handler is unnecessary and
confusion, remove it.

Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
---
 drivers/net/wireless/marvell/mwifiex/main.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c
index 30f4994..5e82602 100644
--- a/drivers/net/wireless/marvell/mwifiex/main.c
+++ b/drivers/net/wireless/marvell/mwifiex/main.c
@@ -1503,11 +1503,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);
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-04-06  8:14 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-30  9:19 [PATCH 1/3] mwifiex: remove unnecessary wakeup interrupt number sanity check Xinming Hu
2017-03-30  9:19 ` [PATCH 2/3] mwifiex: using general print function during device intialization Xinming Hu
2017-03-31 22:46   ` Dmitry Torokhov
2017-04-03 18:42     ` Brian Norris
2017-04-05  6:41       ` Xinming Hu
2017-03-30  9:19 ` [PATCH 3/3] mwifiex: pcie: avoid hardcode wifi-only firmware name Xinming Hu
2017-03-31 22:50   ` Dmitry Torokhov
2017-04-03 18:48     ` Brian Norris
2017-04-06  8:08       ` [EXT] " Xinming Hu
2017-04-06  8:05     ` Xinming Hu
2017-04-05 10:47   ` [3/3] " Kalle Valo
     [not found]   ` <20170405104711.1092260DC7@smtp.codeaurora.org>
2017-04-06  8:14     ` RE:] " Xinming Hu
2017-03-31 22:37 ` [PATCH 1/3] mwifiex: remove unnecessary wakeup interrupt number sanity check Dmitry Torokhov
2017-04-03 18:33   ` Brian Norris
2017-04-05  5:23     ` Xinming Hu
2017-04-05  5:16   ` [EXT] " Xinming Hu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.