]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tpm: remove unnecessary #ifdef CONFIG_TPM
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 24 Oct 2017 12:20:44 +0000 (09:20 -0300)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 25 Oct 2017 05:05:35 +0000 (01:05 -0400)
Makefile.objs now checks for $(CONFIG_TPM).

Suggested-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
tpm.c

diff --git a/tpm.c b/tpm.c
index 45520f555d165773b78ef1873946eb0659bdcdec..ab5d29e91e89543939cba3d7868df140adfe63eb 100644 (file)
--- 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.