summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-11-17 11:43:14 +0100
committerMichael S. Tsirkin <mst@redhat.com>2016-12-16 00:12:48 +0200
commit9f8196cc05caa9aba19f38f29c5f9a12722986c4 (patch)
treef992a0998b4b14752050bda886d4b4badce84238 /drivers
parentfa3a3279354e5f7a13ec16f2c9f5e39124745332 (diff)
virtio_pci: remove the call to vp_free_vectors in vp_request_msix_vectors
vp_request_msix_vectors is only called by vp_try_to_find_vqs, which already calls vp_free_vectors through vp_del_vqs in the failure case. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/virtio/virtio_pci_common.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_pci_common.c b/drivers/virtio/virtio_pci_common.c
index 2846872d5728..5fc9d283a954 100644
--- a/drivers/virtio/virtio_pci_common.c
+++ b/drivers/virtio/virtio_pci_common.c
@@ -197,7 +197,6 @@ static int vp_request_msix_vectors(struct virtio_device *vdev, int nvectors,
}
return 0;
error:
- vp_free_vectors(vdev);
return err;
}