netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mwifiex: propagate error if IRQ request fails in mwifiex_sdio_of()
@ 2016-08-18 14:17 Javier Martinez Canillas
  2016-08-18 19:14 ` Arend van Spriel
  2016-09-03 10:35 ` Kalle Valo
  0 siblings, 2 replies; 9+ messages in thread
From: Javier Martinez Canillas @ 2016-08-18 14:17 UTC (permalink / raw)
  To: linux-kernel
  Cc: Javier Martinez Canillas, Amitkumar Karwar, Kalle Valo, netdev,
	linux-wireless, Nishant Sarmukadam

If request_irq() fails in mwifiex_sdio_probe_of(), only an error message
is printed but the actual error is not propagated to the caller function.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---

 drivers/net/wireless/marvell/mwifiex/sdio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c
index d3e1561ca075..00727936ad6e 100644
--- a/drivers/net/wireless/marvell/mwifiex/sdio.c
+++ b/drivers/net/wireless/marvell/mwifiex/sdio.c
@@ -125,6 +125,7 @@ static int mwifiex_sdio_probe_of(struct device *dev, struct sdio_mmc_card *card)
 				dev_err(dev,
 					"Failed to request irq_wifi %d (%d)\n",
 					cfg->irq_wifi, ret);
+				return ret;
 			}
 			disable_irq(cfg->irq_wifi);
 		}
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 9+ messages in thread
[parent not found: <20160903103520.8C69C6201B@smtp.codeaurora.org>]

end of thread, other threads:[~2016-09-08 15:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-18 14:17 [PATCH] mwifiex: propagate error if IRQ request fails in mwifiex_sdio_of() Javier Martinez Canillas
2016-08-18 19:14 ` Arend van Spriel
2016-08-18 19:29   ` Javier Martinez Canillas
2016-08-18 19:49     ` Arend van Spriel
2016-08-18 20:23       ` Javier Martinez Canillas
2016-09-03 10:35 ` Kalle Valo
     [not found] <20160903103520.8C69C6201B@smtp.codeaurora.org>
2016-09-06 12:12 ` Javier Martinez Canillas
2016-09-08 15:55   ` Amitkumar Karwar
2016-09-08 15:57     ` Javier Martinez Canillas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).