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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Mar 2012 23:58:35 +0000 (16:58 -0700)
commit42960b76d2c6a44d7e8000f4eb9a4ca1780059ff
tree6e9855e8050dd86daf1b8fcd4e490d74d4365d53
parent32a2f747ddf58b0f9ad786c4f3853b1ca7750cf9
drivers/leds/leds-lp5521.c: ret may be uninitialized

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>
drivers/leds/leds-lp5521.c