From: <dinguyen@opensource.altera.com>
To: <a.zummo@towertech.it>
Cc: <dinh.linux@gmail.com>, <rtc-linux@googlegroups.com>,
<linux-kernel@vger.kernel.org>,
Dinh Nguyen <dinguyen@opensource.altera.com>
Subject: [PATCH] drivers/rtc/rtc-pcf8563.c: fix warning
Date: Fri, 19 Sep 2014 16:04:40 -0500 [thread overview]
Message-ID: <1411160680-3869-1-git-send-email-dinguyen@opensource.altera.com> (raw)
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
reply other threads:[~2014-09-19 21:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1411160680-3869-1-git-send-email-dinguyen@opensource.altera.com \
--to=dinguyen@opensource.altera.com \
--cc=a.zummo@towertech.it \
--cc=dinh.linux@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®