Skip to content

Commit 8259d6e

Browse files
committed
[modify] remove not useful condition
Signed-off-by: Leo_Tsai <[email protected]>
1 parent cf6aad2 commit 8259d6e

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

board/hx20/battery.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ enum battery_present battery_is_present(void)
110110
return BP_NO;
111111
else if (!bp)
112112
return BP_NO;
113-
else if (!(charger_current_battery_params()->flags & BATT_FLAG_RESPONSIVE))
114-
return BP_NOT_SURE;
115113
else if (battery_check_disconnect() != BATTERY_NOT_DISCONNECTED)
116114
return BP_NOT_SURE;
117115
else

board/hx20/cypress5525.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,7 @@ void cypd_update_power(void)
357357
}
358358

359359
if (extpower_is_present() ||
360-
(charger_current_battery_params()->flags & BATT_FLAG_RESPONSIVE &&
361-
charger_current_battery_params()->state_of_charge > 0 &&
362-
battery_is_present() == BP_YES))
360+
battery_is_present() == BP_YES)
363361
system_power_present = 1;
364362
else
365363
system_power_present = 0;
@@ -370,9 +368,7 @@ int cypd_update_power_status(void)
370368
int i;
371369
int rv = EC_SUCCESS;
372370
int power_stat = 0;
373-
if (charger_current_battery_params()->flags & BATT_FLAG_RESPONSIVE &&
374-
charger_current_battery_params()->state_of_charge > 0 &&
375-
battery_is_present() == BP_YES) {
371+
if (battery_is_present() == BP_YES) {
376372
power_stat |= BIT(3);
377373
}
378374
if (extpower_is_present()) {

0 commit comments

Comments
 (0)