From 63818e780004c5bebc51b1319ab216d14019c83e Mon Sep 17 00:00:00 2001 From: Dennis Chen Date: Wed, 8 Nov 2017 09:45:39 +0000 Subject: [PATCH] Remove the deprecated 'Event' struct 'Event' struct will be not used any more, instead we use the 'TCG_PCR_EVENT', so this patch remove the older 'Event' data struct. Signed-off-by: Dennis Chen --- grub-core/kern/efi/tpm.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/grub-core/kern/efi/tpm.c b/grub-core/kern/efi/tpm.c index 7af07ddb5..532e534e4 100644 --- a/grub-core/kern/efi/tpm.c +++ b/grub-core/kern/efi/tpm.c @@ -161,15 +161,6 @@ grub_tpm_execute(PassThroughToTPM_InputParamBlock *inbuf, } } -typedef struct { - grub_uint32_t pcrindex; - grub_uint32_t eventtype; - grub_uint8_t digest[20]; - grub_uint32_t eventsize; - grub_uint8_t event[1]; -} Event; - - static grub_err_t grub_tpm1_log_event(grub_efi_handle_t tpm_handle, unsigned char *buf, grub_size_t size, grub_uint8_t pcr,