Skip to content
Commit 17e499a7 authored by Dinghao Liu's avatar Dinghao Liu Committed by Sebastian Reichel
Browse files

power: supply: axp20x_usb_power: Add missing check in axp20x_usb_power_probe



There are two regmap_update_bits() calls but only one of them has
return value check, which is odd. Add a return value check and
terminate the execution flow on failure just like the other call.

Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 32826341
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment