summaryrefslogtreecommitdiff
path: root/common/ccd_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/ccd_config.c')
-rw-r--r--common/ccd_config.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/common/ccd_config.c b/common/ccd_config.c
index 7d430cb797..684a747f8a 100644
--- a/common/ccd_config.c
+++ b/common/ccd_config.c
@@ -963,14 +963,12 @@ static enum vendor_cmd_rc ccd_open(struct vendor_cmd_params *p)
* console. Reject both unless CCD_CAP_OPEN_FROM_USB is enabled.
*/
} else {
-#ifndef CONFIG_CCD_OPEN_PREPVT
/*
* - Battery is present
* - Either not in developer mode or the command came from USB
*/
why_denied = "open from AP in devmode or remove batt";
goto denied;
-#endif
}
/* Fail and abort if already checking physical presence */