summaryrefslogtreecommitdiff
path: root/board/reef/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/reef/board.c')
-rw-r--r--board/reef/board.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/board/reef/board.c b/board/reef/board.c
index e0c7ba9dff..cec70666d9 100644
--- a/board/reef/board.c
+++ b/board/reef/board.c
@@ -501,6 +501,7 @@ int board_set_active_charge_port(int charge_port)
CPRINTF("Skip enable p%d", charge_port);
return EC_ERROR_INVAL;
}
+
/*
* Reject charge port disable if our battery is critical and we
* have yet to initialize a charge port - continue to charge using
@@ -508,11 +509,8 @@ int board_set_active_charge_port(int charge_port)
*/
if (!initialized &&
charge_port == CHARGE_PORT_NONE &&
- charge_get_percent() < 2) {
- CPRINTS("Battery critical, don't disable charging");
+ charge_get_percent() < 2)
return -1;
- }
-
CPRINTS("New chg p%d", charge_port);