From: Michael S. Tsirkin Date: Thu, 15 Dec 2016 21:58:13 +0000 (+0200) Subject: virtio: clean up handling of request_irq failure X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d41795978c47fa87b6514a0f2238958b7e8319a0;p=linux-beck.git virtio: clean up handling of request_irq failure We call del_vqs twice when request_irq fails, this makes no sense. Signed-off-by: Michael S. Tsirkin --- diff --git a/drivers/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c index d9a905827967..423f3d9c1548 100644 --- a/drivers/virtio/virtio_pci_common.c +++ b/drivers/virtio/virtio_pci_common.c @@ -360,10 +360,8 @@ 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;