Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1160718 > unrolled thread

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

Started byAlexandre Belloni <alexandre.belloni@free-electrons.com>
First post2015-06-08 21:10 +0200
Last post2015-06-08 21:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [rtc-linux] [PATCH] rtc: palmas: Initialise bb_charging flag  before using it Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-06-08 21:10 +0200

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

FromAlexandre Belloni <alexandre.belloni@free-electrons.com>
Date2015-06-08 21:10 +0200
SubjectRe: [rtc-linux] [PATCH] rtc: palmas: Initialise bb_charging flag before using it
Message-ID<pzaAO-7UC-21@gated-at.bofh.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 <ldewangan@nvidia.com>

-- 
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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web