aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-10-10 00:55:50 +0200
committerStefan Berger <stefanb@linux.vnet.ibm.com>2017-10-19 11:42:24 -0400
commit27a79d96b42a819122c83745a5d837c9664ba915 (patch)
treee057896b1b424ed673603f3535407dc91f80481d /backends
parentd31076ba75d4239928282143efd30d08730c8845 (diff)
tpm: remove init() class method
No backend use it. 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 'backends')
-rw-r--r--backends/tpm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/backends/tpm.c b/backends/tpm.c
index ca3a78eea8..dc750d48c9 100644
--- a/backends/tpm.c
+++ b/backends/tpm.c
@@ -47,13 +47,11 @@ enum TpmType tpm_backend_get_type(TPMBackend *s)
int tpm_backend_init(TPMBackend *s, TPMState *state,
TPMRecvDataCB *datacb)
{
- TPMBackendClass *k = TPM_BACKEND_GET_CLASS(s);
-
s->tpm_state = state;
s->recv_data_callback = datacb;
s->had_startup_error = false;
- return k->init ? k->init(s) : 0;
+ return 0;
}
int tpm_backend_startup_tpm(TPMBackend *s)