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

login
register
mail settings
Submitter Juan Quintela
Date Dec. 2, 2009, 12:04 p.m.
Message ID <46c8f01b3ae1d00fd000afc1ece32fb3be08010f.1259754427.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/40010/
State New
Headers show

Comments

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

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;