Skip to content

Commit

Permalink
virtio_pci: remove the call to vp_free_vectors in vp_request_msix_vec…
Browse files Browse the repository at this point in the history
…tors

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>
  • Loading branch information
Christoph Hellwig authored and Michael S. Tsirkin committed Dec 15, 2016
1 parent fa3a327 commit 9f8196c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/virtio/virtio_pci_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9f8196c

Please sign in to comment.