From 3912e312ae8486eb00bf4c4a1e0048dbc976e19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Tue, 17 Mar 2026 12:42:09 +0100 Subject: [PATCH] hw/tpm: Simplify tpm_ppi_enabled() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TPM instances don't expose any "ppi" property anymore, remove that dead code. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Stefan Berger Message-Id: <20260317120241.16320-6-philmd@linaro.org> --- include/system/tpm.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/system/tpm.h b/include/system/tpm.h index 9458ad6668..874068d19a 100644 --- a/include/system/tpm.h +++ b/include/system/tpm.h @@ -13,7 +13,6 @@ #define QEMU_TPM_H #include "qapi/qapi-types-tpm.h" -#include "qapi/error.h" #include "qom/object.h" #ifdef CONFIG_TPM @@ -85,10 +84,7 @@ static inline bool tpm_ppi_enabled(TPMIf *ti) if (!ti) { return false; } - if (TPM_IF_GET_CLASS(ti)->ppi_enabled) { - return true; - } - return object_property_get_bool(OBJECT(ti), "ppi", &error_abort); + return TPM_IF_GET_CLASS(ti)->ppi_enabled; } #else /* CONFIG_TPM */