Browse Source

[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 <marek.vasut@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Marek Vasut 16 năm trước cách đây
mục cha
commit
6cf4442feb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/pcmcia/pxa2xx_palmtc.c

+ 1 - 1
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,
 static int palmtc_pcmcia_configure_socket(struct soc_pcmcia_socket *skt,
 					const socket_state_t *state)
 					const socket_state_t *state)
 {
 {
-	int ret;
+	int ret = 1;
 
 
 	if (state->Vcc == 0)
 	if (state->Vcc == 0)
 		ret = palmtc_wifi_powerdown();
 		ret = palmtc_wifi_powerdown();