From e11bc471c4b59072299a8c7b3fbd534de941a5a0 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Thu, 3 Sep 2009 04:40:03 +0200 Subject: [PATCH] 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 --- drivers/pcmcia/pxa2xx_palmtc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pcmcia/pxa2xx_palmtc.c b/drivers/pcmcia/pxa2xx_palmtc.c index 2c29507..3a8993e 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(); -- 1.6.3.3