[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 12/42] tpm: remove needless cast
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH 12/42] tpm: remove needless cast |
Date: |
Tue, 10 Oct 2017 00:55:53 +0200 |
Signed-off-by: Marc-André Lureau <address@hidden>
---
hw/tpm/tpm_passthrough.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 "
--
2.14.1.146.gd35faa819
- [Qemu-devel] [PATCH 08/42] tpm: remove TPMDriverOps, (continued)
- [Qemu-devel] [PATCH 08/42] tpm: remove TPMDriverOps, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 10/42] tpm: remove configure_tpm() hop, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 09/42] tpm: remove init() class method, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 11/42] tpm: remove unused TPMBackendCmd, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 12/42] tpm: remove needless cast,
Marc-André Lureau <=
- [Qemu-devel] [PATCH 13/42] tpm: remove locty argument from receive_cb, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 14/42] tpm: add TPMBackendCmd to hold the request state, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 16/42] tpm: remove locty_data from TPMState, Marc-André Lureau, 2017/10/09
- [Qemu-devel] [PATCH 15/42] tpm-emulator: fix error handling, Marc-André Lureau, 2017/10/09