summary refs log tree commit diff stats
path: root/hw/ivshmem.c
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2012-09-29 13:36:21 +0800
committerStefan Hajnoczi <stefanha@gmail.com>2012-10-05 15:10:21 +0200
commit4d5b97da35ecbfdad6fe1cbe7fdd7d71ef735602 (patch)
treeee0e196c5bc3d4cb7702ff55c5bf7464c86a8783 /hw/ivshmem.c
parent58455eb9f2865d54c8bf208805f7a4c217b5c00d (diff)
downloadfocaccia-qemu-4d5b97da35ecbfdad6fe1cbe7fdd7d71ef735602.tar.gz
focaccia-qemu-4d5b97da35ecbfdad6fe1cbe7fdd7d71ef735602.zip
cleanup useless return sentence
This patch cleans up return sentences in the end of void functions.

Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Amos Kong <akong@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Diffstat (limited to 'hw/ivshmem.c')
-rw-r--r--hw/ivshmem.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/ivshmem.c b/hw/ivshmem.c
index 59f1aa4265..5c4ccb85f0 100644
--- a/hw/ivshmem.c
+++ b/hw/ivshmem.c
@@ -149,7 +149,6 @@ static void ivshmem_IntrStatus_write(IVShmemState *s, uint32_t val)
     s->intrstatus = val;
 
     ivshmem_update_irq(s, val);
-    return;
 }
 
 static uint32_t ivshmem_IntrStatus_read(IVShmemState *s)
@@ -510,8 +509,6 @@ static void ivshmem_read(void *opaque, const uint8_t * buf, int flags)
     if (ivshmem_has_feature(s, IVSHMEM_IOEVENTFD)) {
         ivshmem_add_eventfd(s, incoming_posn, guest_max_eventfd);
     }
-
-    return;
 }
 
 /* Select the MSI-X vectors used by device.
@@ -536,7 +533,6 @@ static void ivshmem_reset(DeviceState *d)
 
     s->intrstatus = 0;
     ivshmem_use_msix(s);
-    return;
 }
 
 static uint64_t ivshmem_get_size(IVShmemState * s) {