diff mbox

[05/41] virtio-console: Remove useless casts

Message ID 46c8f01b3ae1d00fd000afc1ece32fb3be08010f.1259754427.git.quintela@redhat.com
State New
Headers show

Commit Message

Juan Quintela Dec. 2, 2009, 12:04 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/virtio-console.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/hw/virtio-console.c b/hw/virtio-console.c
index e0afe61..9f1a602 100644
--- a/hw/virtio-console.c
+++ b/hw/virtio-console.c
@@ -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;