virtio-net: return with value in void function
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 9 May 2010 11:35:43 +0000 (14:35 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 12 May 2010 15:33:39 +0000 (18:33 +0300)
virtio-net has return with value in a void function.
No idea why does it compile with gcc,
but this isn't standard C.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio-net.c

index d602c56..cb664e6 100644 (file)
@@ -227,7 +227,7 @@ static void virtio_net_set_features(VirtIODevice *vdev, uint32_t features)
     if (!tap_get_vhost_net(n->nic->nc.peer)) {
         return;
     }
-    return vhost_net_ack_features(tap_get_vhost_net(n->nic->nc.peer), features);
+    vhost_net_ack_features(tap_get_vhost_net(n->nic->nc.peer), features);
 }
 
 static int virtio_net_handle_rx_mode(VirtIONet *n, uint8_t cmd,