commit | e0d422987936958b41999f62ea64f1dd0102606f | [log] [tgz] |
---|---|---|
author | Arnd Bergmann <arnd@arndb.de> | Mon Dec 04 15:45:29 2017 +0100 |
committer | Jacek Anaszewski <jacek.anaszewski@gmail.com> | Mon Jan 08 21:28:10 2018 +0100 |
tree | b323f253e42c8d89810973dc0f26b940c5740ae2 | |
parent | a72d3b5dc68dea113c10bc31404cebe834eb0e49 [diff] |
leds: blinkm: avoid uninitialized data use gcc-8 reports missing error handling in blinkm_detect, when blinkm() fails, tmpargs[] is uninitialized: drivers/leds/leds-blinkm.c: In function 'blinkm_detect': drivers/leds/leds-blinkm.c:555:6: error: 'tmpargs' may be used uninitialized in this function [-Werror=maybe-uninitialized] This adds a missing error checks. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>