diff options
author | Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> | 2012-03-23 15:02:09 -0700 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2013-01-03 03:32:50 +0000 |
commit | 322c19a92f16994516d4dfbb6acd9db846fd7bd2 (patch) | |
tree | 9cd552854ae6322287ca4adbb5d12433255736b3 /drivers/leds | |
parent | 4b9c9729bc89903d6a6226cf8471ba7f6d6aac9f (diff) | |
download | linux-rt-322c19a92f16994516d4dfbb6acd9db846fd7bd2.tar.gz |
drivers/leds/leds-lp5521.c: ret may be uninitialized
commit 42960b76d2c6a44d7e8000f4eb9a4ca1780059ff upstream.
Fix it by assigning the lp5521_read return value.
Signed-off-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com>
Cc: Milo(Woogyom) Kim <milo.kim@ti.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Arun MURTHY <arun.murthy@stericsson.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | 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 e47902c76644..47771ada90f0 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 resetting chip\n"); goto fail2; |