diff options
author | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2018-02-02 08:39:18 -0500 |
---|---|---|
committer | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2018-02-03 09:01:56 -0500 |
commit | 3bd9e16149de3965a9880a20826a28b7b94bd4a7 (patch) | |
tree | aca36ea68716b309168c0a6774126760ee05554f /hw/tpm | |
parent | d3e2165009b853d6bb653d445f7de448fc464774 (diff) | |
download | qemu-3bd9e16149de3965a9880a20826a28b7b94bd4a7.zip qemu-3bd9e16149de3965a9880a20826a28b7b94bd4a7.tar.gz qemu-3bd9e16149de3965a9880a20826a28b7b94bd4a7.tar.bz2 |
tpm: tis: move one-line function into caller
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'hw/tpm')
-rw-r--r-- | hw/tpm/tpm_tis.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c index 08f41d2..f81168a 100644 --- a/hw/tpm/tpm_tis.c +++ b/hw/tpm/tpm_tis.c @@ -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 = { |