提交 6cf4442f 编写于 作者: M Marek Vasut 提交者: Eric Miao

[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: NMarek Vasut <marek.vasut@gmail.com>
Signed-off-by: NEric Miao <eric.y.miao@gmail.com>
上级 36d618be
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册