diff options
author | Stefan Hajnoczi | 2016-05-20 20:04:21 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2016-06-07 15:40:51 +0200 |
commit | 3a90c4ace2c3b368be419f02b0b09ab596877706 (patch) | |
tree | 6be241ac82390d48a18b5c990863d2f1b4b985fc /hw/scsi | |
parent | virtio-scsi: Remove op blocker for dataplane (diff) | |
download | qemu-3a90c4ace2c3b368be419f02b0b09ab596877706.tar.gz qemu-3a90c4ace2c3b368be419f02b0b09ab596877706.tar.xz qemu-3a90c4ace2c3b368be419f02b0b09ab596877706.zip |
virtio: drop duplicate virtio_queue_get_id() function
The virtio_queue_get_id() function is the lesser used duplicate of
virtio_get_queue_index(). Use the latter instead.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1463767461-17922-1-git-send-email-stefanha@redhat.com
Diffstat (limited to 'hw/scsi')
-rw-r--r-- | hw/scsi/virtio-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index d26f4908d4..71d09d3ef3 100644 --- a/hw/scsi/virtio-scsi.c +++ b/hw/scsi/virtio-scsi.c @@ -185,7 +185,7 @@ static void virtio_scsi_save_request(QEMUFile *f, SCSIRequest *sreq) { VirtIOSCSIReq *req = sreq->hba_private; VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(req->dev); - uint32_t n = virtio_queue_get_id(req->vq) - 2; + uint32_t n = virtio_get_queue_index(req->vq) - 2; assert(n < vs->conf.num_queues); qemu_put_be32s(f, &n); |