diff options
author | Cédric Le Goater <clg@kaod.org> | 2020-03-04 19:07:21 +0100 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2020-03-06 12:22:20 +1100 |
commit | fdfe5c7bc3887591f60953c282b717540fc6900b (patch) | |
tree | 3430a79b6dd9c029dc62c55ee457b8901a9d9c06 | |
parent | 7c98b3b613338a385722a953517349664aa4f532 (diff) | |
download | SLOF-fdfe5c7bc3887591f60953c282b717540fc6900b.zip SLOF-fdfe5c7bc3887591f60953c282b717540fc6900b.tar.gz SLOF-fdfe5c7bc3887591f60953c282b717540fc6900b.tar.bz2 |
virtio: Fix typo in virtio_serial_init()
Fixes: 300384f3dc68 ("virtio: Store queue descriptors in virtio_device")
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
-rw-r--r-- | lib/libvirtio/virtio-serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libvirtio/virtio-serial.c b/lib/libvirtio/virtio-serial.c index 8826be9..d1503a4 100644 --- a/lib/libvirtio/virtio-serial.c +++ b/lib/libvirtio/virtio-serial.c @@ -81,7 +81,7 @@ int virtio_serial_init(struct virtio_device *dev) last_rx_idx = virtio_modern16_to_cpu(dev, vq_rx->used->idx); vq_tx = virtio_queue_init_vq(dev, TX_Q); - if (vq_tx) + if (!vq_tx) goto dev_error; |