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>
This commit is contained in:
Marc-André Lureau 2017-10-10 00:55:50 +02:00 committed by Stefan Berger
parent d31076ba75
commit 27a79d96b4
2 changed files with 1 additions and 5 deletions

View File

@ -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)

View File

@ -66,8 +66,6 @@ struct TPMBackendClass {
TPMBackend *(*create)(QemuOpts *opts, const char *id);
/* initialize the backend */
int (*init)(TPMBackend *t);
/* start up the TPM on the backend */
int (*startup_tpm)(TPMBackend *t);