From 02b2909b1875ba65cd56cf8e3697a2b67ddaea07 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 7 Jul 2016 11:15:47 -0700 Subject: [PATCH] tpm2: remove unused buffer size definition TPM2 structure definitions use pointers instead of buffers where possible. One structure was left behind, replace buffer definition with a pointer to be consistent. BRANCH=none BUG=chrome-os-partner:50645 TEST=compilation succeeds, the code using the changed structure in the upcoming patches allows to successfully boot chrome OS on Kevin Change-Id: I9856ac516be13f5892ba8af0526708409a297033 Signed-off-by: Vadim Bendebury Reviewed-on: https://chromium-review.googlesource.com/358771 Reviewed-by: Douglas Anderson --- src/lib/tpm2_tlcl_structures.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tpm2_tlcl_structures.h b/src/lib/tpm2_tlcl_structures.h index 251c3cc3f0..d05c564669 100644 --- a/src/lib/tpm2_tlcl_structures.h +++ b/src/lib/tpm2_tlcl_structures.h @@ -176,7 +176,7 @@ typedef struct { typedef union { struct { uint16_t size; - uint8_t buffer[sizeof(TPMU_HA)]; + const uint8_t *buffer; } t; TPM2B b; } TPM2B_DIGEST;