[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH v2 3/4] tpm: remove unnecessary #ifdef CONFIG_TPM
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-trivial] [PATCH v2 3/4] tpm: remove unnecessary #ifdef CONFIG_TPM |
Date: |
Tue, 24 Oct 2017 09:20:44 -0300 |
Makefile.objs now checks for $(CONFIG_TPM).
Suggested-by: Stefan Berger <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
tpm.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/tpm.c b/tpm.c
index 45520f555d..ab5d29e91e 100644
--- a/tpm.c
+++ b/tpm.c
@@ -30,8 +30,6 @@ void tpm_register_model(enum TpmModel model)
tpm_models[model] = true;
}
-#ifdef CONFIG_TPM
-
static const TPMBackendClass *
tpm_be_find_by_type(enum TpmType type)
{
@@ -192,8 +190,6 @@ int tpm_config_parse(QemuOptsList *opts_list, const char
*optarg)
return 0;
}
-#endif /* CONFIG_TPM */
-
/*
* Walk the list of active TPM backends and collect information about them
* following the schema description in qapi-schema.json.
--
2.15.0.rc1
- [Qemu-trivial] [PATCH v2 0/4] tpm: add stubs to fix compiling with --disable-tpm, Philippe Mathieu-Daudé, 2017/10/24
- [Qemu-trivial] [PATCH v2 1/4] tpm: add missing include, Philippe Mathieu-Daudé, 2017/10/24
- [Qemu-trivial] [PATCH v2 2/4] tpm: add stubs, Philippe Mathieu-Daudé, 2017/10/24
- [Qemu-trivial] [PATCH v2 4/4] vl: remove unnecessary #ifdef CONFIG_TPM, Philippe Mathieu-Daudé, 2017/10/24
- [Qemu-trivial] [PATCH v2 3/4] tpm: remove unnecessary #ifdef CONFIG_TPM,
Philippe Mathieu-Daudé <=
- Re: [Qemu-trivial] [PATCH v2 0/4] tpm: add stubs to fix compiling with --disable-tpm, Richard W.M. Jones, 2017/10/24
- Re: [Qemu-trivial] [PATCH v2 0/4] tpm: add stubs to fix compiling with --disable-tpm, Amarnath Valluri, 2017/10/24