mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drivers/rtc/rtc-pcf8563.c: fix warning
@ 2014-09-19 21:04 dinguyen
  0 siblings, 0 replies; only message in thread
From: dinguyen @ 2014-09-19 21:04 UTC (permalink / raw)
  To: a.zummo; +Cc: dinh.linux, rtc-linux, linux-kernel, Dinh Nguyen

From: Dinh Nguyen <dinguyen@opensource.altera.com>

drivers/rtc/rtc-pcf8563.c: In function pfc8563_irq:
drivers/rtc/rtc-pcf8563.c:173:5: warning: pending may be used uninitialized
in this function [-Wmaybe-uninitialized]

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
---
 drivers/rtc/rtc-pcf8563.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-pcf8563.c b/drivers/rtc/rtc-pcf8563.c
index 5a197d9..29ba5e7 100644
--- a/drivers/rtc/rtc-pcf8563.c
+++ b/drivers/rtc/rtc-pcf8563.c
@@ -164,7 +164,7 @@ static irqreturn_t pcf8563_irq(int irq, void *dev_id)
 {
 	struct pcf8563 *pcf8563 = i2c_get_clientdata(dev_id);
 	int err;
-	char pending;
+	char pending = 0;
 
 	err = pcf8563_get_alarm_mode(pcf8563->client, NULL, &pending);
 	if (err < 0)
-- 
2.0.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-19 21:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-19 21:04 [PATCH] drivers/rtc/rtc-pcf8563.c: fix warning dinguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®