From 84a952e0e867d2e862aefb72dd12efaf832a8fa8 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 27 Jul 2017 16:28:15 -0700 Subject: [PATCH] npcx: Drop unused cmd_params from lpc.c cmd_params is static, const and unused. Drop it. BUG=none BRANCH=none TEST=USE=coreboot-sdk emerge-fizz chromeos-ec succeeds. Signed-off-by: Stefan Reinauer Change-Id: I62444d81affde9e3e0d4da1d1ee2d5d51a337bb6 Reviewed-on: https://chromium-review.googlesource.com/590676 Commit-Ready: Stefan Reinauer Tested-by: Stefan Reinauer Reviewed-by: Patrick Georgi --- chip/npcx/lpc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/chip/npcx/lpc.c b/chip/npcx/lpc.c index fb3b240895..7770609c1b 100644 --- a/chip/npcx/lpc.c +++ b/chip/npcx/lpc.c @@ -70,8 +70,6 @@ static uint8_t shm_memmap[256] __aligned(8); static uint8_t params_copy[EC_LPC_HOST_PACKET_SIZE] __aligned(4); static int init_done; -static uint8_t * const cmd_params = (uint8_t *)shm_mem_host_cmd + - EC_LPC_ADDR_HOST_PARAM - EC_LPC_ADDR_HOST_ARGS; static struct ec_lpc_host_args * const lpc_host_args = (struct ec_lpc_host_args *)shm_mem_host_cmd;