lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 19 Sep 2014 16:04:40 -0500
From:	<dinguyen@...nsource.altera.com>
To:	<a.zummo@...ertech.it>
CC:	<dinh.linux@...il.com>, <rtc-linux@...glegroups.com>,
	<linux-kernel@...r.kernel.org>,
	Dinh Nguyen <dinguyen@...nsource.altera.com>
Subject: [PATCH] drivers/rtc/rtc-pcf8563.c: fix warning

From: Dinh Nguyen <dinguyen@...nsource.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@...nsource.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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists