power: supply: bq25980: Fix uninitialized wd_reg_val
authorDan Murphy <dmurphy@ti.com>
Tue, 6 Oct 2020 17:30:07 +0000 (12:30 -0500)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 8 Oct 2020 21:58:15 +0000 (23:58 +0200)
commitd4fbca833b72cb58297df35a32cce77cd6409707
tree9dd9bbf9663da061a3414698c2ce9e734cdb7f70
parent4b464bad37c65492f03fe6cc15bdb6a9a6a5f5e7
power: supply: bq25980: Fix uninitialized wd_reg_val

Fix the uninitialized wd_reg_val if the for..loop was not successful in
finding an appropriate match.

Fixes: 5069185fc18e ("power: supply: bq25980: Add support for the BQ259xx family")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq25980_charger.c