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>
This commit is contained in:
parent
bf254dd3bc
commit
9b8784475c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue