summaryrefslogtreecommitdiff
path: root/common/host_command.c
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2019-10-16 17:44:14 +0800
committerCommit Bot <commit-bot@chromium.org>2019-12-06 16:07:31 +0000
commitd543cbe84912f722b19f8e624d9d31254d5bed7f (patch)
tree02ef889bff60b576588bb9266b3c22ba8dd0d9f3 /common/host_command.c
parent2cd6efe60ed81a0d59ab91b94dc28212b1e59609 (diff)
downloadchrome-ec-d543cbe84912f722b19f8e624d9d31254d5bed7f.tar.gz
ec: remove entering_mode host command
After this host command is called, the value is stored in g_vboot_mode and never accessed again. BUG=b:124141368, chromium:1014379 TEST=make buildall -j BRANCH=none Change-Id: I7923658139d15394c1c3c07baca7168e34c111e9 Signed-off-by: Joel Kitching <kitching@google.com> Cq-Depend: chromium:1830239, chromium:1864533 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1865050 Tested-by: Joel Kitching <kitching@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'common/host_command.c')
-rw-r--r--common/host_command.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/common/host_command.c b/common/host_command.c
index c3a207937e..c7fd1baa15 100644
--- a/common/host_command.c
+++ b/common/host_command.c
@@ -33,9 +33,6 @@
static struct host_cmd_handler_args *pending_args;
-/* Verify Boot Mode */
-static int g_vboot_mode;
-
#ifndef CONFIG_HOSTCMD_X86
/*
* Simulated memory map. Must be word-aligned, because some of the elements
@@ -98,11 +95,6 @@ uint8_t *host_get_memmap(int offset)
#endif
}
-int host_get_vboot_mode(void)
-{
- return g_vboot_mode;
-}
-
test_mockable void host_send_response(struct host_cmd_handler_args *args)
{
#ifdef CONFIG_HOST_COMMAND_STATUS
@@ -767,18 +759,6 @@ DECLARE_HOST_COMMAND(EC_CMD_RESEND_RESPONSE,
EC_VER_MASK(0));
#endif /* CONFIG_HOST_COMMAND_STATUS */
-static enum ec_status
-host_command_entering_mode(struct host_cmd_handler_args *args)
-{
- struct ec_params_entering_mode *param =
- (struct ec_params_entering_mode *)args->params;
- args->response_size = 0;
- g_vboot_mode = param->vboot_mode;
- return EC_RES_SUCCESS;
-}
-DECLARE_HOST_COMMAND(EC_CMD_ENTERING_MODE,
- host_command_entering_mode, EC_VER_MASK(0));
-
/* Returns what we tell it to. */
static enum ec_status
host_command_test_protocol(struct host_cmd_handler_args *args)