Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1175821 > unrolled thread

[PATCH] wlcore: sdio: return correct error code

Started byRaphael Poggi <poggi.raph@gmail.com>
First post2015-07-02 10:40 +0200
Last post2015-07-02 10:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] wlcore: sdio: return correct error code Raphael Poggi <poggi.raph@gmail.com> - 2015-07-02 10:40 +0200

#1175821 — [PATCH] wlcore: sdio: return correct error code

FromRaphael Poggi <poggi.raph@gmail.com>
Date2015-07-02 10:40 +0200
Subject[PATCH] wlcore: sdio: return correct error code
Message-ID<pHIcj-jZ-21@gated-at.bofh.it>
When wlcore_probe_of failed, return the correct error code instead of ENOMEM

Signed-off-by: Raphaƫl Poggi <poggi.raph@gmail.com>
---
 drivers/net/wireless/ti/wlcore/sdio.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ti/wlcore/sdio.c b/drivers/net/wireless/ti/wlcore/sdio.c
index ea7e07a..c172da5 100644
--- a/drivers/net/wireless/ti/wlcore/sdio.c
+++ b/drivers/net/wireless/ti/wlcore/sdio.c
@@ -293,7 +293,8 @@ static int wl1271_probe(struct sdio_func *func,
 	/* Use block mode for transferring over one block size of data */
 	func->card->quirks |= MMC_QUIRK_BLKSZ_FOR_BYTE_MODE;
 
-	if (wlcore_probe_of(&func->dev, &irq, &pdev_data))
+	ret = wlcore_probe_of(&func->dev, &irq, &pdev_data);
+	if (ret)
 		goto out_free_glue;
 
 	/* if sdio can keep power while host is suspended, enable wow */
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web