提交 3bd9e161 编写于 作者: S Stefan Berger

tpm: tis: move one-line function into caller

Signed-off-by: NStefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
上级 d3e21650
......@@ -946,11 +946,6 @@ static const MemoryRegionOps tpm_tis_memory_ops = {
},
};
static int tpm_tis_do_startup_tpm(TPMState *s, size_t buffersize)
{
return tpm_backend_startup_tpm(s->be_driver, buffersize);
}
/*
* Get the TPMVersion of the backend device being used
*/
......@@ -1005,7 +1000,7 @@ static void tpm_tis_reset(DeviceState *dev)
s->rw_offset = 0;
}
tpm_tis_do_startup_tpm(s, s->be_buffer_size);
tpm_backend_startup_tpm(s->be_driver, s->be_buffer_size);
}
static const VMStateDescription vmstate_tpm_tis = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册