summaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-10-10 00:55:52 +0200
committerStefan Berger <stefanb@linux.vnet.ibm.com>2017-10-19 11:42:25 -0400
commit905e78ba25c613a9daa7adb4e8fb3aec0fa4a2c9 (patch)
tree6f4865ee0ae0f951c461269c4c4388e2e01ee449 /backends
parent76ae76bfea67ca972d1158dfdea07e27e4c0852e (diff)
downloadqemu-905e78ba25c613a9daa7adb4e8fb3aec0fa4a2c9.tar.gz
tpm: remove unused TPMBackendCmd
There is only handling of request so far in both backends. 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.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/backends/tpm.c b/backends/tpm.c
index dc750d48c9..34e82085ec 100644
--- a/backends/tpm.c
+++ b/backends/tpm.c
@@ -25,13 +25,12 @@ static void tpm_backend_worker_thread(gpointer data, gpointer user_data)
TPMBackendClass *k = TPM_BACKEND_GET_CLASS(s);
assert(k->handle_request != NULL);
- k->handle_request(s, (TPMBackendCmd)data);
+ k->handle_request(s);
}
static void tpm_backend_thread_end(TPMBackend *s)
{
if (s->thread_pool) {
- g_thread_pool_push(s->thread_pool, (gpointer)TPM_BACKEND_CMD_END, NULL);
g_thread_pool_free(s->thread_pool, FALSE, TRUE);
s->thread_pool = NULL;
}
@@ -64,7 +63,6 @@ int tpm_backend_startup_tpm(TPMBackend *s)
s->thread_pool = g_thread_pool_new(tpm_backend_worker_thread, s, 1, TRUE,
NULL);
- g_thread_pool_push(s->thread_pool, (gpointer)TPM_BACKEND_CMD_INIT, NULL);
res = k->startup_tpm ? k->startup_tpm(s) : 0;
@@ -80,8 +78,7 @@ bool tpm_backend_had_startup_error(TPMBackend *s)
void tpm_backend_deliver_request(TPMBackend *s)
{
- g_thread_pool_push(s->thread_pool, (gpointer)TPM_BACKEND_CMD_PROCESS_CMD,
- NULL);
+ g_thread_pool_push(s->thread_pool, NULL, NULL);
}
void tpm_backend_reset(TPMBackend *s)