diff options
author | Yu Liao <[email protected]> | 2023-08-02 10:31:30 +0800 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2023-08-03 02:23:21 +0200 |
commit | 13a0d1088c8fea1565e30a169188b59bdd77759e (patch) | |
tree | 5f3081c18e1c4c11f332eeb72de6ef9ea7f23085 /tools | |
parent | af73fd32b4f2d23bb61c37f533ddae49e10ef3b0 (diff) |
power: supply: qcom_pmi8998_charger: fix uninitialized variable
smatch warnings:
drivers/power/supply/qcom_pmi8998_charger.c:565 smb2_status_change_work() error: uninitialized symbol 'usb_online'.
usb_online is used uninitialized whenever smb2_get_prop_usb_online()
returns a negative value.
Thus, fix the issue by initializing usb_online to 0.
Fixes: 8648aeb5d7b7 ("power: supply: add Qualcomm PMI8998 SMB2 Charger driver")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Yu Liao <[email protected]>
Reviewed-by: Caleb Connolly <[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions