@samitouri / QOSamiQemu / commits / 3912e312ae

hw/tpm: Simplify tpm_ppi_enabled()

TPM instances don't expose any "ppi" property anymore, remove that dead code. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Message-Id: <20260317120241.16320-6-philmd@linaro.org>

Philippe Mathieu-Daudé committed Mar 17, 2026 at 12:42 UTC 3912e312ae8486eb00bf4c4a1e0048dbc976e19e
1 file changed +1 -5
include/system/tpm.h
+1 -5
@@ -13,7 +13,6 @@
13 #define QEMU_TPM_H
14
15 #include "qapi/qapi-types-tpm.h"
16 -#include "qapi/error.h"
16 #include "qom/object.h"
17
18 #ifdef CONFIG_TPM
@@ -85,10 +84,7 @@ static inline bool tpm_ppi_enabled(TPMIf *ti)
84 if (!ti) {
85 return false;
86 }
88 - if (TPM_IF_GET_CLASS(ti)->ppi_enabled) {
89 - return true;
90 - }
91 - return object_property_get_bool(OBJECT(ti), "ppi", &error_abort);
87 + return TPM_IF_GET_CLASS(ti)->ppi_enabled;
88 }
89
90 #else /* CONFIG_TPM */