Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4179597 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

virtio: clean up handling of request_irq failure



We call del_vqs twice when request_irq fails, this
makes no sense.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent f83f12d6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -360,11 +360,9 @@ static int vp_try_to_find_vqs(struct virtio_device *vdev, unsigned nvqs,
				  vring_interrupt, 0,
				  vp_dev->msix_names[msix_vec],
				  vqs[i]);
		if (err) {
			vp_del_vq(vqs[i]);
		if (err)
			goto error_find;
	}
	}
	return 0;

error_find: