diff options
author | Aaron Durbin <adurbin@chromium.org> | 2017-03-27 16:40:03 -0500 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2017-04-03 05:32:56 +0200 |
commit | 9b8784475c2ea5efedc59d199f95c816f282a19f (patch) | |
tree | 09940e7996d7ca7ef3f186659c6d7879770a72d2 /src/drivers/i2c/tpm | |
parent | bf254dd3bc8e77a2cadbc8bffecae1e711fb9002 (diff) | |
download | coreboot-9b8784475c2ea5efedc59d199f95c816f282a19f.tar.xz |
drivers/i2c/tpm: remove unused variable in tpm_transmit()
The 'ordinal' variable is not used. Remove it.
BUG=b:36598499
Change-Id: I015a6633c0951980658b3c879e48bc84d604d62e
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/19060
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/drivers/i2c/tpm')
-rw-r--r-- | src/drivers/i2c/tpm/tis.c | 4 |
1 files changed, 1 insertions, 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; |