linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] leds-lp5523: trival compiler warning fixes
@ 2012-01-26 18:37 Danny Kukawka
  0 siblings, 0 replies; only message in thread
From: Danny Kukawka @ 2012-01-26 18:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: Richard Purdie

Trivial compiler warning fixes (for -Wuninitialized).

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.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


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

only message in thread, other threads:[~2012-01-26 18:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-26 18:37 [PATCH] leds-lp5523: trival compiler warning fixes Danny Kukawka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).