diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2022-03-24 01:17:39 +0100 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2022-05-11 01:08:26 +0000 |
commit | 73a7353550167eb573175e941107bbb4339b6f8e (patch) | |
tree | 6a3f8bfde1d97050324a109092b334938164e0e8 /src/security/tpm/tspi | |
parent | 44ce83b882ea3b55cf2bb0561f22f40b4b9cd80a (diff) | |
download | coreboot-73a7353550167eb573175e941107bbb4339b6f8e.tar.gz coreboot-73a7353550167eb573175e941107bbb4339b6f8e.tar.bz2 coreboot-73a7353550167eb573175e941107bbb4339b6f8e.zip |
security/tpm/crtm.c: Remove set but unused variable
Change-Id: I3c97cb57fe13adee217783973691748d6c542abe
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63070
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/security/tpm/tspi')
-rw-r--r-- | src/security/tpm/tspi/crtm.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/security/tpm/tspi/crtm.c b/src/security/tpm/tspi/crtm.c index 8cd07937796d..2d0901dd9dea 100644 --- a/src/security/tpm/tspi/crtm.c +++ b/src/security/tpm/tspi/crtm.c @@ -140,7 +140,6 @@ uint32_t tspi_cbfs_measurement(const char *name, uint32_t type, const struct vb2 int tspi_measure_cache_to_pcr(void) { int i; - enum vb2_hash_algorithm hash_alg; struct tcpa_table *tclt = tcpa_log_init(); /* This means the table is empty. */ @@ -151,11 +150,6 @@ int tspi_measure_cache_to_pcr(void) printk(BIOS_WARNING, "TCPA: Log non-existent!\n"); return VB2_ERROR_UNKNOWN; } - if (CONFIG(TPM1)) { - hash_alg = VB2_HASH_SHA1; - } else { /* CONFIG_TPM2 */ - hash_alg = VB2_HASH_SHA256; - } printk(BIOS_DEBUG, "TPM: Write digests cached in TCPA log to PCR\n"); for (i = 0; i < tclt->num_entries; i++) { |