Re: [rtc-linux] [PATCH] rtc: palmas: Initialise bb_charging flag before using it

From: Alexandre Belloni
Date: Mon Jun 08 2015 - 15:04:50 EST


On 29/05/2015 at 17:44:05 +0530, Laxman Dewangan wrote :
> Initialise the variable high_bb_charging before using it to avoid
> configuring wrong value and fix following compilation warning:
>
> /*
> rtc-palmas.c: In function âpalmas_rtc_probeâ:
> rtc-palmas.c:242:7: warning: âhigh_bb_chargingâ may be used
> uninitialized in this function
> */
>

I didn't find a way to get that warning and I'm interested to know how
you got it.

I've applied the patch anyway.

> Signed-off-by: Laxman Dewangan <ldewangan@xxxxxxxxxx>

--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/