diff options
author | Amarnath Valluri <amarnath.valluri@intel.com> | 2017-09-29 14:10:16 +0300 |
---|---|---|
committer | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2017-10-13 07:34:33 -0400 |
commit | 93330cf542b920b6ea5fea8120a08b76bb353113 (patch) | |
tree | 8450f62f15427f279ea4257877d6ce91a062fcab /tpm.c | |
parent | f35fe5cb97bbdaa6a6967f2fefc3fc1f79680601 (diff) | |
download | qemu-93330cf542b920b6ea5fea8120a08b76bb353113.zip qemu-93330cf542b920b6ea5fea8120a08b76bb353113.tar.gz qemu-93330cf542b920b6ea5fea8120a08b76bb353113.tar.bz2 |
tpm-backend: Made few interface methods optional
This allows backend implementations left optional interface methods.
For mandatory methods assertion checks added.
Took the opportunity to remove unused methods:
- tpm_backend_get_desc()
- TPMDriverOps->handle_startup_error
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Reviewed-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -62,7 +62,7 @@ static void tpm_display_backend_drivers(void) continue; } fprintf(stderr, "%12s %s\n", - TpmType_str(i), be_drivers[i]->desc()); + TpmType_str(i), be_drivers[i]->desc); } fprintf(stderr, "\n"); } |