]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/virtio/vhost.c
hw/arm/iotkit: Rename files to hw/arm/armsse.[ch]
[mirror_qemu.git] / hw / virtio / vhost.c
index d4cb5894a82ea2df69db7c9e4c23007f8c39ddb6..569c4053eae75e82edcacebba4e67bea30b4e931 100644 (file)
@@ -1073,10 +1073,8 @@ static void vhost_virtqueue_stop(struct vhost_dev *dev,
         .index = vhost_vq_index,
     };
     int r;
-    int a;
 
-    a = virtio_queue_get_desc_addr(vdev, idx);
-    if (a == 0) {
+    if (virtio_queue_get_desc_addr(vdev, idx) == 0) {
         /* Don't stop the virtqueue which might have not been started */
         return;
     }