]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/leds/leds-lp5521.c: ret may be uninitialized
authorSrinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Fri, 23 Mar 2012 22:02:09 +0000 (15:02 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 3 Jan 2013 03:32:50 +0000 (03:32 +0000)
commit322c19a92f16994516d4dfbb6acd9db846fd7bd2
tree9cd552854ae6322287ca4adbb5d12433255736b3
parent4b9c9729bc89903d6a6226cf8471ba7f6d6aac9f
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>
drivers/leds/leds-lp5521.c