From 9b8784475c2ea5efedc59d199f95c816f282a19f Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Mon, 27 Mar 2017 16:40:03 -0500 Subject: drivers/i2c/tpm: remove unused variable in tpm_transmit() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'ordinal' variable is not used. Remove it. BUG=b:36598499 Change-Id: I015a6633c0951980658b3c879e48bc84d604d62e Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/19060 Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Paul Menzel --- src/drivers/i2c/tpm/tis.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/drivers/i2c/tpm/tis.c b/src/drivers/i2c/tpm/tis.c index 6bb0e969e9..d61cadac30 100644 --- a/src/drivers/i2c/tpm/tis.c +++ b/src/drivers/i2c/tpm/tis.c @@ -76,13 +76,11 @@ int tis_init(void) static ssize_t tpm_transmit(const uint8_t *buf, size_t bufsiz) { int rc; - uint32_t count, ordinal; + uint32_t count; struct tpm_chip *chip = car_get_var_ptr(&g_chip); memcpy(&count, buf + TPM_CMD_COUNT_BYTE, sizeof(count)); count = be32_to_cpu(count); - memcpy(&ordinal, buf + TPM_CMD_ORDINAL_BYTE, sizeof(ordinal)); - ordinal = be32_to_cpu(ordinal); if (!chip->vendor.send || !chip->vendor.status || !chip->vendor.cancel) return -1; -- cgit v1.2.3