[lkml]   [2015]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [rtc-linux] [PATCH] rtc: palmas: Initialise bb_charging flag before using it
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 <>

Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering

 \ /
  Last update: 2015-06-08 21:21    [W:0.059 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site