]> git.karo-electronics.de Git - linux-beck.git/commit
leds-lm3530: Fix smatch warnings
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 12 Sep 2012 06:34:09 +0000 (14:34 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Wed, 12 Sep 2012 07:05:00 +0000 (15:05 +0800)
commite0e021600e3ebb80d6539cc5f8de8f9d19687e80
tree7cb8f780d242178982d41a44ee3bed9196d70907
parenta47df97c9936cff6d31f03e12651ad897e0e374c
leds-lm3530: Fix smatch warnings

Fixes the following smatch warnings:
drivers/leds/leds-lm3530.c:361 lm3530_mode_set() info:
why not propagate 'mode' from lm3530_get_mode_from_str() instead of -22?
drivers/leds/leds-lm3530.c:432 lm3530_probe() info:
why not propagate 'err' from lm3530_init_registers() instead of -19?
drivers/leds/leds-lm3530.c:438 lm3530_probe() info:
why not propagate 'err' from led_classdev_register() instead of -19?

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Shreshtha Kumar SAHU <shreshthakumar.sahu@stericsson.com>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/leds-lm3530.c