diff options
author | Marc-André Lureau | 2017-10-10 00:55:53 +0200 |
---|---|---|
committer | Stefan Berger | 2017-10-19 17:42:26 +0200 |
commit | 54aa36d5c8ac70db25923c7a8aa11c8f7aadd225 (patch) | |
tree | d5703f043f1d643403bdfa78af1b808c2f28e199 /hw/tpm | |
parent | tpm: remove unused TPMBackendCmd (diff) | |
download | qemu-54aa36d5c8ac70db25923c7a8aa11c8f7aadd225.tar.gz qemu-54aa36d5c8ac70db25923c7a8aa11c8f7aadd225.tar.xz qemu-54aa36d5c8ac70db25923c7a8aa11c8f7aadd225.zip |
tpm: remove needless cast
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 'hw/tpm')
-rw-r--r-- | hw/tpm/tpm_passthrough.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/tpm/tpm_passthrough.c b/hw/tpm/tpm_passthrough.c index 5cd988e8a4..fed3d69799 100644 --- a/hw/tpm/tpm_passthrough.c +++ b/hw/tpm/tpm_passthrough.c @@ -96,7 +96,7 @@ static int tpm_passthrough_unix_tx_bufs(TPMPassthruState *tpm_pt, is_selftest = tpm_util_is_selftest(in, in_len); - ret = qemu_write_full(tpm_pt->tpm_fd, (const void *)in, (size_t)in_len); + ret = qemu_write_full(tpm_pt->tpm_fd, in, in_len); if (ret != in_len) { if (!tpm_pt->tpm_op_canceled || errno != ECANCELED) { error_report("tpm_passthrough: error while transmitting data " |