Message ID | 1350816727-1381-3-git-send-email-Julia.Lawall@lip6.fr (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
On Sun, 2012-10-21 at 12:52 +0200, Julia Lawall wrote: > From: Julia Lawall <Julia.Lawall@lip6.fr> > > The function wl12xx_set_power_on is only called twice, once in > wl12xx_chip_wakeup and once in wl12xx_get_hw_info. On the failure of the > call in wl12xx_chip_wakeup, the containing function just returns, but on > the failure of the call in wl12xx_get_hw_info, the containing function > calls wl1271_power_off. This does not seem necessary, because if > wl12xx_set_power_on has set the power on and then fails, it has already > turned the power off. [...] Applied and pushed, thanks! -- Luca. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 25530c8..0eb739b 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -5116,7 +5116,7 @@ static int wl12xx_get_hw_info(struct wl1271 *wl) ret = wl12xx_set_power_on(wl); if (ret < 0) - goto out; + return ret; ret = wlcore_read_reg(wl, REG_CHIP_ID_B, &wl->chip.id); if (ret < 0)