diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 10c2f3d7a4a24ddd9402288bdef41aba8b63dc30..973d0c2228030b7b45bff2abffb0076df8ed50b4 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -416,7 +416,7 @@ void virtqueue_get_avail_bytes(VirtQueue *vq, unsigned int *in_bytes, unsigned int max, num_bufs, indirect = 0; VRingDesc desc; hwaddr desc_pa; - int i; + unsigned int i; max = vq->vring.num; num_bufs = total_bufs;