From 71fff859db63dc8332854d826e97142706825fef Mon Sep 17 00:00:00 2001 From: Thibaut Collet Date: Mon, 19 Oct 2015 10:52:43 +0200 Subject: [PATCH] fixup! vhost: use a function for each call --- hw/virtio/vhost-backend.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/hw/virtio/vhost-backend.c b/hw/virtio/vhost-backend.c index 34e26cd..f358017 100644 --- a/hw/virtio/vhost-backend.c +++ b/hw/virtio/vhost-backend.c @@ -166,13 +166,6 @@ static int vhost_kernel_reset_device(struct vhost_dev *dev) return vhost_kernel_call(dev, VHOST_RESET_DEVICE, NULL); } -static int vhost_kernel_get_vq_index(struct vhost_dev *dev, int idx) -{ - assert(idx >= dev->vq_index && idx < dev->vq_index + dev->nvqs); - - return idx - dev->vq_index; -} - static const VhostOps kernel_ops = { .backend_type = VHOST_BACKEND_TYPE_KERNEL, .vhost_backend_init = vhost_kernel_init, -- 2.1.4