summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/pxa2xx_palmtc.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2009-09-03 04:40:03 +0200
committerEric Miao <eric.y.miao@gmail.com>2009-09-10 18:49:36 +0800
commit6cf4442feba5af93a09cadfc5a6512a971f7825d (patch)
tree6fb875623e1f4862fdb6e69d5ea867c7b7ae56a4 /drivers/pcmcia/pxa2xx_palmtc.c
parent36d618be131547adc51c464a3a0a9f72f2449a2d (diff)
downloadop-kernel-dev-6cf4442feba5af93a09cadfc5a6512a971f7825d.zip
op-kernel-dev-6cf4442feba5af93a09cadfc5a6512a971f7825d.tar.gz
[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>
Diffstat (limited to 'drivers/pcmcia/pxa2xx_palmtc.c')
-rw-r--r--drivers/pcmcia/pxa2xx_palmtc.c2
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();
OpenPOWER on IntegriCloud