[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20121228190334.206284646@decadent.org.uk>
Date: Fri, 28 Dec 2012 20:03:50 +0100
From: Ben Hutchings <ben@...adent.org.uk>
To: linux-kernel@...r.kernel.org, stable@...r.kernel.org
Cc: akpm@...ux-foundation.org, alan@...rguk.ukuu.org.uk,
Srinidhi KASAGAR <srinidhi.kasagar@...ricsson.com>,
"Milo(Woogyom) Kim" <milo.kim@...com>,
Linus Walleij <linus.walleij@...aro.org>,
Arun MURTHY <arun.murthy@...ricsson.com>,
Richard Purdie <rpurdie@...ys.net>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: [ 020/173] drivers/leds/leds-lp5521.c: ret may be uninitialized
3.2-stable review patch. If anyone has any objections, please let me know.
------------------
From: Srinidhi KASAGAR <srinidhi.kasagar@...ricsson.com>
commit 42960b76d2c6a44d7e8000f4eb9a4ca1780059ff upstream.
Fix it by assigning the lp5521_read return value.
Signed-off-by: srinidhi kasagar <srinidhi.kasagar@...ricsson.com>
Cc: Milo(Woogyom) Kim <milo.kim@...com>
Cc: Linus Walleij <linus.walleij@...aro.org>
Cc: Arun MURTHY <arun.murthy@...ricsson.com>
Cc: Richard Purdie <rpurdie@...ys.net>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@...ux-foundation.org>
Signed-off-by: Ben Hutchings <ben@...adent.org.uk>
---
drivers/leds/leds-lp5521.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/leds/leds-lp5521.c b/drivers/leds/leds-lp5521.c
index de7b8fe..410a723 100644
--- a/drivers/leds/leds-lp5521.c
+++ b/drivers/leds/leds-lp5521.c
@@ -784,7 +784,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 resetting chip\n");
goto fail2;
--
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