Skip to content

Commit

Permalink
vhost-user-scsi: remove unimplemented functions
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
elmarco committed Oct 10, 2017
1 parent d0dba9f commit c7226ee
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions contrib/vhost-user-scsi/vhost-user-scsi.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit c7226ee

Please sign in to comment.