* [patch -next] wl1251: wl12xx_get_platform_data() returns an ERR_PTR
@ 2010-12-18 8:52 Dan Carpenter
2010-12-18 9:12 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2010-12-18 8:52 UTC (permalink / raw)
To: Kalle Valo; +Cc: John W. Linville, linux-wireless, kernel-janitors
wl12xx_get_platform_data() returns an ERR_PTR on failure and it never
returns a NULL.
Signed-off-by: Dan Carpenter <error27@gmail.com>
diff --git a/drivers/net/wireless/wl1251/sdio.c b/drivers/net/wireless/wl1251/sdio.c
index 596d90e..d550b5e 100644
--- a/drivers/net/wireless/wl1251/sdio.c
+++ b/drivers/net/wireless/wl1251/sdio.c
@@ -252,7 +252,7 @@ static int wl1251_sdio_probe(struct sdio_func *func,
wl->if_ops = &wl1251_sdio_ops;
wl12xx_board_data = wl12xx_get_platform_data();
- if (wl12xx_board_data != NULL) {
+ if (!IS_ERR(wl12xx_board_data)) {
wl->set_power = wl12xx_board_data->set_power;
wl->irq = wl12xx_board_data->irq;
wl->use_eeprom = wl12xx_board_data->use_eeprom;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch -next] wl1251: wl12xx_get_platform_data() returns an ERR_PTR
2010-12-18 8:52 [patch -next] wl1251: wl12xx_get_platform_data() returns an ERR_PTR Dan Carpenter
@ 2010-12-18 9:12 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2010-12-18 9:12 UTC (permalink / raw)
To: Dan Carpenter; +Cc: John W. Linville, linux-wireless, kernel-janitors
Dan Carpenter <error27@gmail.com> writes:
> wl12xx_get_platform_data() returns an ERR_PTR on failure and it never
> returns a NULL.
Yes, that's true. Good that you found this.
> Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Kalle Valo <kvalo@adurom.com>
--
Kalle Valo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-18 9:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-18 8:52 [patch -next] wl1251: wl12xx_get_platform_data() returns an ERR_PTR Dan Carpenter
2010-12-18 9:12 ` Kalle Valo
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).