mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
fae054b070
commit
57c3229ba1
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue