diff options
author | Eugenio Pérez <eperezma@redhat.com> | 2020-04-18 13:22:17 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-06-22 19:34:22 +0300 |
commit | cb91909e48a4809261ef4e967464e2009b214f06 (patch) | |
tree | 876b6f1d4541820c3fc866fae5e198189cc94f4a /tools/virtio/virtio_test.c | |
parent | 1d8bf5c3a3a1b90c39ccbafb3aa63ffc5196b142 (diff) | |
download | linux-cb91909e48a4809261ef4e967464e2009b214f06.tar.xz |
tools/virtio: Use tools/include/list.h instead of stubs
It should not make any significant difference but reduce stub code.
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Link: https://lore.kernel.org/r/20200418102217.32327-9-eperezma@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/virtio/virtio_test.c')
-rw-r--r-- | tools/virtio/virtio_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/virtio/virtio_test.c b/tools/virtio/virtio_test.c index 82902fc3ba2a..cb3f29c09aff 100644 --- a/tools/virtio/virtio_test.c +++ b/tools/virtio/virtio_test.c @@ -129,6 +129,7 @@ static void vdev_info_init(struct vdev_info* dev, unsigned long long features) int r; memset(dev, 0, sizeof *dev); dev->vdev.features = features; + INIT_LIST_HEAD(&dev->vdev.vqs); dev->buf_size = 1024; dev->buf = malloc(dev->buf_size); assert(dev->buf); |