summaryrefslogtreecommitdiff
path: root/driver/charger/bd99955.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/charger/bd99955.c')
-rw-r--r--driver/charger/bd99955.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/driver/charger/bd99955.c b/driver/charger/bd99955.c
index 626cce813a..95209b6de8 100644
--- a/driver/charger/bd99955.c
+++ b/driver/charger/bd99955.c
@@ -693,8 +693,7 @@ int charger_set_voltage(int voltage)
* Regulate the system voltage to battery max if the battery
* is not present or the battery is discharging on AC.
*/
- if (voltage == 0 ||
- bd99955_is_discharging_on_ac() ||
+ if (bd99955_is_discharging_on_ac() ||
battery_is_present() != BP_YES ||
battery_is_cut_off() ||
voltage > bi->voltage_max)