Skip to content

Commit

Permalink
[ARM] pxa/palm: fix possibly uninitialized variable in PalmTC-pcmcia
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Vasut authored and Eric Miao committed Sep 10, 2009
1 parent 36d618b commit 6cf4442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pcmcia/pxa2xx_palmtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6cf4442

Please sign in to comment.