All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/leds/leds-lp5521.c: ret may be uninitialized
@ 2012-02-27 12:05 Srinidhi KASAGAR
  0 siblings, 0 replies; only message in thread
From: Srinidhi KASAGAR @ 2012-02-27 12:05 UTC (permalink / raw)
  To: rpurdie; +Cc: linux-kernel, akpm00, linus.walleij, srinidhi kasagar

Fix it by assigning the lp5521_read return value.

Signed-off-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com>
---
 drivers/leds/leds-lp5521.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/leds/leds-lp5521.c b/drivers/leds/leds-lp5521.c
index d62a798..e683e9d 100644
--- a/drivers/leds/leds-lp5521.c
+++ b/drivers/leds/leds-lp5521.c
@@ -692,7 +692,7 @@ static int __devinit lp5521_probe(struct i2c_client *client,
 	 * otherwise further access to the R G B channels in the
 	 * LP5521_REG_ENABLE register will not have any effect - strange!
 	 */
-	lp5521_read(client, LP5521_REG_R_CURRENT, &buf);
+	ret = lp5521_read(client, LP5521_REG_R_CURRENT, &buf);
 	if (buf != LP5521_REG_R_CURR_DEFAULT) {
 		dev_err(&client->dev, "error in reseting chip\n");
 		goto fail2;
-- 
1.7.2.dirty


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

only message in thread, other threads:[~2012-02-27 12:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-27 12:05 [PATCH] drivers/leds/leds-lp5521.c: ret may be uninitialized Srinidhi KASAGAR

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.