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 8037320340..42a925ae67 100644
--- a/common/uart_buffering.c
+++ b/common/uart_buffering.c
@@ -342,13 +342,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);
@@ -379,13 +372,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;