mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
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>
This commit is contained in:
parent
76ae76bfea
commit
905e78ba25
4 changed files with 26 additions and 55 deletions
|
@ -149,29 +149,20 @@ static int tpm_passthrough_unix_transfer(TPMPassthruState *tpm_pt,
|
|||
selftest_done);
|
||||
}
|
||||
|
||||
static void tpm_passthrough_handle_request(TPMBackend *tb, TPMBackendCmd cmd)
|
||||
static void tpm_passthrough_handle_request(TPMBackend *tb)
|
||||
{
|
||||
TPMPassthruState *tpm_pt = TPM_PASSTHROUGH(tb);
|
||||
bool selftest_done = false;
|
||||
|
||||
DPRINTF("tpm_passthrough: processing command type %d\n", cmd);
|
||||
DPRINTF("tpm_passthrough: processing command\n");
|
||||
|
||||
switch (cmd) {
|
||||
case TPM_BACKEND_CMD_PROCESS_CMD:
|
||||
tpm_passthrough_unix_transfer(tpm_pt,
|
||||
tb->tpm_state->locty_data,
|
||||
&selftest_done);
|
||||
tpm_passthrough_unix_transfer(tpm_pt,
|
||||
tb->tpm_state->locty_data,
|
||||
&selftest_done);
|
||||
|
||||
tb->recv_data_callback(tb->tpm_state,
|
||||
tb->tpm_state->locty_number,
|
||||
selftest_done);
|
||||
break;
|
||||
case TPM_BACKEND_CMD_INIT:
|
||||
case TPM_BACKEND_CMD_END:
|
||||
case TPM_BACKEND_CMD_TPM_RESET:
|
||||
/* nothing to do */
|
||||
break;
|
||||
}
|
||||
tb->recv_data_callback(tb->tpm_state,
|
||||
tb->tpm_state->locty_number,
|
||||
selftest_done);
|
||||
}
|
||||
|
||||
static void tpm_passthrough_reset(TPMBackend *tb)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue