aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio-net.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-05-09 14:35:43 +0300
committerMichael S. Tsirkin <mst@redhat.com>2010-05-12 18:33:39 +0300
commit57c3229ba1c5cecae277301b8b16577fbf2de98b (patch)
treecad5ce470e58531d5d10c9962a4f3fa82ca26c0e /hw/virtio-net.c
parentfae054b070143a60ce40671470292efc2dc58a49 (diff)
virtio-net: return with value in void function
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>
Diffstat (limited to 'hw/virtio-net.c')
-rw-r--r--hw/virtio-net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio-net.c b/hw/virtio-net.c
index d602c56c25..cb664e6207 100644
--- a/hw/virtio-net.c
+++ b/hw/virtio-net.c
@@ -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,