summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/uart_buffering.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/common/uart_buffering.c b/common/uart_buffering.c
index 6e93804e61..b7130cd3b9 100644
--- a/common/uart_buffering.c
+++ b/common/uart_buffering.c
@@ -332,13 +332,6 @@ DECLARE_HOOK(HOOK_INIT, uart_rx_dma_init, HOOK_PRIO_DEFAULT);
static int host_command_console_snapshot(struct host_cmd_handler_args *args)
{
- /*
- * Only allowed on unlocked system, since console output contains
- * keystroke data.
- */
- if (system_is_locked())
- return EC_ERROR_ACCESS_DENIED;
-
/* Assume the whole circular buffer is full */
tx_snapshot_head = tx_buf_head;
tx_snapshot_tail = TX_BUF_NEXT(tx_snapshot_head);
@@ -369,13 +362,6 @@ static int host_command_console_read(struct host_cmd_handler_args *args)
{
char *dest = (char *)args->response;
- /*
- * Only allowed on unlocked system, since console output contains
- * keystroke data.
- */
- if (system_is_locked())
- return EC_ERROR_ACCESS_DENIED;
-
/* If no snapshot data, return empty response */
if (tx_snapshot_head == tx_snapshot_tail)
return EC_RES_SUCCESS;