aboutsummaryrefslogtreecommitdiff
path: root/tpm.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-11-06 19:39:05 +0100
committerStefan Berger <stefanb@linux.vnet.ibm.com>2017-12-14 23:39:14 -0500
commit3c3ef630621e4cdc5171dcfd19a22b2dc300bcb3 (patch)
tree221fae0a7d83084fd2f8bd86e8617e6de1884aac /tpm.c
parent191adc9476371ad94771609d8b9a968d9332a962 (diff)
downloadqemu-3c3ef630621e4cdc5171dcfd19a22b2dc300bcb3.zip
qemu-3c3ef630621e4cdc5171dcfd19a22b2dc300bcb3.tar.gz
qemu-3c3ef630621e4cdc5171dcfd19a22b2dc300bcb3.tar.bz2
tpm: remove unused opened code
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'tpm.c')
-rw-r--r--tpm.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tpm.c b/tpm.c
index 4320f44..32d398a 100644
--- a/tpm.c
+++ b/tpm.c
@@ -132,12 +132,6 @@ static int tpm_init_tpmdev(void *dummy, QemuOpts *opts, Error **errp)
return 1;
}
- tpm_backend_open(drv, &local_err);
- if (local_err) {
- error_report_err(local_err);
- return 1;
- }
-
QLIST_INSERT_HEAD(&tpm_backends, drv, list);
return 0;