summaryrefslogtreecommitdiffstats
path: root/contrib/vhost-user-scsi/vhost-user-scsi.c
diff options
context:
space:
mode:
authorMarc-André Lureau2017-08-16 21:30:35 +0200
committerMarc-André Lureau2017-10-10 23:31:09 +0200
commitc7226ee77f7e6013e71ada642dbadf09549e97ad (patch)
treec7141c635d0daa08a73981f4553659c7de11dbe9 /contrib/vhost-user-scsi/vhost-user-scsi.c
parentvhost-user-scsi: remove VUS_MAX_LUNS (diff)
downloadqemu-c7226ee77f7e6013e71ada642dbadf09549e97ad.tar.gz
qemu-c7226ee77f7e6013e71ada642dbadf09549e97ad.tar.xz
qemu-c7226ee77f7e6013e71ada642dbadf09549e97ad.zip
vhost-user-scsi: remove unimplemented functions
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'contrib/vhost-user-scsi/vhost-user-scsi.c')
-rw-r--r--contrib/vhost-user-scsi/vhost-user-scsi.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/contrib/vhost-user-scsi/vhost-user-scsi.c b/contrib/vhost-user-scsi/vhost-user-scsi.c
index 6b55cc71d3..26b17f348b 100644
--- a/contrib/vhost-user-scsi/vhost-user-scsi.c
+++ b/contrib/vhost-user-scsi/vhost-user-scsi.c
@@ -471,16 +471,6 @@ static void vus_del_watch_cb(VuDev *vu_dev, int fd)
}
}
-static void vus_proc_ctl(VuDev *vu_dev, int idx)
-{
- /* Control VQ not implemented */
-}
-
-static void vus_proc_evt(VuDev *vu_dev, int idx)
-{
- /* Event VQ not implemented */
-}
-
static void vus_proc_req(VuDev *vu_dev, int idx)
{
vhost_scsi_dev_t *vdev_scsi;
@@ -561,14 +551,9 @@ static void vus_queue_set_started(VuDev *vu_dev, int idx, bool started)
vq = vu_get_queue(vu_dev, idx);
- switch (idx) {
- case 0:
- vu_set_queue_handler(vu_dev, vq, started ? vus_proc_ctl : NULL);
- break;
- case 1:
- vu_set_queue_handler(vu_dev, vq, started ? vus_proc_evt : NULL);
- break;
- default:
+ if (idx == 0 || idx == 1) {
+ PDBG("queue %d unimplemented", idx);
+ } else {
vu_set_queue_handler(vu_dev, vq, started ? vus_proc_req : NULL);
}
}