From: Marek Vasut Date: Thu, 3 Sep 2009 02:40:03 +0000 (+0200) Subject: [ARM] pxa/palm: fix possibly uninitialized variable in PalmTC-pcmcia X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6cf4442feba5af93a09cadfc5a6512a971f7825d;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [ARM] pxa/palm: fix possibly uninitialized variable in PalmTC-pcmcia This 'problem' actually cant cause a failure of the driver, but it's always better to be correct. Signed-off-by: Marek Vasut Signed-off-by: Eric Miao --- diff --git a/drivers/pcmcia/pxa2xx_palmtc.c b/drivers/pcmcia/pxa2xx_palmtc.c index 2c295078032..3a8993ed562 100644 --- a/drivers/pcmcia/pxa2xx_palmtc.c +++ b/drivers/pcmcia/pxa2xx_palmtc.c @@ -156,7 +156,7 @@ static int palmtc_wifi_powerup(void) static int palmtc_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, const socket_state_t *state) { - int ret; + int ret = 1; if (state->Vcc == 0) ret = palmtc_wifi_powerdown();