diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-10-10 00:56:02 +0200 |
---|---|---|
committer | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2017-10-19 11:42:33 -0400 |
commit | 05a699985c001927a50f8f276251f2af1e0c5b58 (patch) | |
tree | 6ceaf9311f014cf2be96a4194d98f593bc399184 /backends | |
parent | 698f5daa4a81984490612a6143b46f5da7392510 (diff) |
tpm: move recv_data_callback to TPM interface
Simplify the TPM backend setup, move callback to TPM interface.
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/backends/tpm.c b/backends/tpm.c index 87c5c09179..5763f6f369 100644 --- a/backends/tpm.c +++ b/backends/tpm.c @@ -44,11 +44,9 @@ enum TpmType tpm_backend_get_type(TPMBackend *s) return k->type; } -int tpm_backend_init(TPMBackend *s, TPMState *state, - TPMRecvDataCB *datacb) +int tpm_backend_init(TPMBackend *s, TPMState *state) { s->tpm_state = state; - s->recv_data_callback = datacb; s->had_startup_error = false; return 0; |