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  linux-cve-announce  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]
Message-Id: <1327603061-25388-1-git-send-email-danny.kukawka@bisect.de>
Date:	Thu, 26 Jan 2012 19:37:41 +0100
From:	Danny Kukawka <danny.kukawka@...ect.de>
To:	linux-kernel@...r.kernel.org
Cc:	Richard Purdie <rpurdie@...ys.net>
Subject: [PATCH] leds-lp5523: trival compiler warning fixes

Trivial compiler warning fixes (for -Wuninitialized).

Signed-off-by: Danny Kukawka <danny.kukawka@...ect.de>
---
 drivers/leds/leds-lp5523.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/leds/leds-lp5523.c b/drivers/leds/leds-lp5523.c
index 73e791a..6d38e0a 100644
--- a/drivers/leds/leds-lp5523.c
+++ b/drivers/leds/leds-lp5523.c
@@ -193,7 +193,7 @@ static int lp5523_configure(struct i2c_client *client)
 {
 	struct lp5523_chip *chip = i2c_get_clientdata(client);
 	int ret = 0;
-	u8 status;
+	u8 status = 0;
 
 	/* one pattern per engine setting led mux start and stop addresses */
 	u8 pattern[][LP5523_PROGRAM_LENGTH] =  {
@@ -442,6 +442,8 @@ static ssize_t lp5523_selftest(struct device *dev,
 	int led = 0;
 	u8 status, adc, vdd;
 
+	adc = vdd = 0;
+
 	mutex_lock(&chip->lock);
 
 	ret = lp5523_read(chip->client, LP5523_REG_STATUS, &status);
-- 
1.7.7.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

Powered by Openwall GNU/*/Linux Powered by OpenVZ