@@ -53,7 +53,7 @@ static uint32_t virtio_console_get_features(VirtIODevice *vdev)
static int vcon_can_read(void *opaque)
{
- VirtIOConsole *s = (VirtIOConsole *) opaque;
+ VirtIOConsole *s = opaque;
if (!virtio_queue_ready(s->ivq) ||
!(s->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK) ||
@@ -73,7 +73,7 @@ static int vcon_can_read(void *opaque)
static void vcon_read(void *opaque, const uint8_t *buf, int size)
{
- VirtIOConsole *s = (VirtIOConsole *) opaque;
+ VirtIOConsole *s = opaque;
VirtQueueElement elem;
int offset = 0;
Signed-off-by: Juan Quintela <quintela@redhat.com> --- hw/virtio-console.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)