diff options
author | Axel Lin <[email protected]> | 2011-10-31 17:12:12 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-10-31 17:30:55 -0700 |
commit | fa0ea0e16f748e36d65931227188ccf07f2b77c7 (patch) | |
tree | aa6f67424045340e8a71f4700905e40eaebbf780 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 2b67c95b74f17c13c7b3a990540c9dd9b4a8480d (diff) |
drivers/leds/leds-lp5521.c: avoid writing uninitialized value to LP5521_REG_OP_MODE register
If lp5521_read fails, engine_state variable is not initialized.
If lp5521_read fails, we should return error.
This patch fixes below warning.
CC drivers/leds/leds-lp5521.o
drivers/leds/leds-lp5521.c: In function 'lp5521_set_engine_mode':
drivers/leds/leds-lp5521.c:168: warning: 'engine_state' may be used uninitialized in this function
[[email protected]: remove unneeded "ret |="]
Signed-off-by: Axel Lin <[email protected]>
Cc: Samu Onkalo <[email protected]>
Cc: Richard Purdie <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions