Skip to content

Commit

Permalink
tpm: remove needless cast
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
elmarco authored and stefanberger committed Oct 19, 2017
1 parent 905e78b commit 54aa36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/tpm/tpm_passthrough.c
Expand Up @@ -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 "
Expand Down

0 comments on commit 54aa36d

Please sign in to comment.