]> git.karo-electronics.de Git - linux-beck.git/commitdiff
virtio_pci: remove the call to vp_free_vectors in vp_request_msix_vectors
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Nov 2016 10:43:14 +0000 (11:43 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Dec 2016 22:12:48 +0000 (00:12 +0200)
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>
drivers/virtio/virtio_pci_common.c

index 2846872d5728c7756fc0849d1dc7eec7bfec1e3a..5fc9d283a954a414fbb7bdc9e34e6d64f583cafa 100644 (file)
@@ -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;
 }