aboutsummaryrefslogtreecommitdiff
path: root/drivers/power/Makefile
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-04-19 18:33:33 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2021-04-20 16:18:08 +0200
commita837f35c5ae0b0fb2b2b6bc1765b7be5a44b0a19 (patch)
tree42973736890a4cd2dfcd7e3f605575de61723bed /drivers/power/Makefile
parent01dcfe7849875db439d24600d6d89ef40ae97eac (diff)
power: supply: max17040: handle device_property_read_u8_array() failure
The device_property_read_u8_array() call should not fail because it is preceded with device_property_count_u8() and check for number of readable u8 values. However the code is more obvious and easier to read if the return value of device_property_read_u8_array() is checked. Otherwise reader needs to investigate whether really there is no risk of using random stack values of 'rcomp' variable. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/Makefile')
0 files changed, 0 insertions, 0 deletions