projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fae054b
)
virtio-net: return with value in void function
author
Michael S. Tsirkin
<mst@redhat.com>
Sun, 9 May 2010 11:35:43 +0000
(14:35 +0300)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/hw/virtio-net.c
b/hw/virtio-net.c
index d602c56c257e2224b572aef38176fea4b83d39b0..cb664e620724b5ee99b6846efbfd5570187d2dbd 100644
(file)
--- 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,