From b7cbb7c43157d45187abcf953d693152230a8120 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 11 Aug 2023 11:31:05 +0200 Subject: cbmem.h: Drop cbmem_possible_online in favor of ENV_HAS_CBMEM The macro ENV_HAS_CBMEM achieves the same as this inline function. Signed-off-by: Arthur Heymans Change-Id: I6d65ca51c863abe2106f794398ddd7d7d9ac4b5e Reviewed-on: https://review.coreboot.org/c/coreboot/+/77166 Reviewed-by: Yu-Ping Wu Tested-by: build bot (Jenkins) Reviewed-by: Jakub Czapiga --- src/security/tpm/tspi/log-tpm2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/security/tpm/tspi/log-tpm2.c') diff --git a/src/security/tpm/tspi/log-tpm2.c b/src/security/tpm/tspi/log-tpm2.c index c7bbc9e42b..56799a7e94 100644 --- a/src/security/tpm/tspi/log-tpm2.c +++ b/src/security/tpm/tspi/log-tpm2.c @@ -45,7 +45,7 @@ void *tpm2_log_cbmem_init(void) if (tclt) return tclt; - if (cbmem_possibly_online()) { + if (ENV_HAS_CBMEM) { size_t tpm_log_len; struct tcg_efi_spec_id_event *hdr; -- cgit v1.2.3