aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/bcm958522er.dts
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-01-25 23:22:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-14 14:00:15 +0200
commit329607b4864d5b55bb3add768787360ad6f9ebfe (patch)
tree9424dcf3da0a2e50b4c5d1dc73c8073dae4567f7 /arch/arm/boot/dts/bcm958522er.dts
parentf46fdb8a2611b4ffe9dda5b712ac02add90e930f (diff)
leds: ktd2692: avoid harmless maybe-uninitialized warning
commit cbe99c538d1776009e8710755bb6e726f7fffa9b upstream. gcc gets confused about the control flow in ktd2692_parse_dt(), causing it to warn about what seems like a potential bug: drivers/leds/leds-ktd2692.c: In function 'ktd2692_probe': drivers/leds/leds-ktd2692.c:244:15: error: '*((void *)&led_cfg+8)' may be used uninitialized in this function [-Werror=maybe-uninitialized] drivers/leds/leds-ktd2692.c:225:7: error: 'led_cfg.flash_max_microamp' may be used uninitialized in this function [-Werror=maybe-uninitialized] drivers/leds/leds-ktd2692.c:232:3: error: 'led_cfg.movie_max_microamp' may be used uninitialized in this function [-Werror=maybe-uninitialized] The code is fine, and slightly reworking it in an equivalent way lets gcc figure that out too, which gets rid of the warning. Fixes: 77e7915b15bb ("leds: ktd2692: Add missing of_node_put") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/boot/dts/bcm958522er.dts')
0 files changed, 0 insertions, 0 deletions