]> Pileus Git - ~andy/linux/blobdiff - drivers/vhost/tcm_vhost.c
tcm_vhost: fix pr_err on early kick
[~andy/linux] / drivers / vhost / tcm_vhost.c
index d670130ee687e803407a10075608bb883ab70451..22321cf84fbe2ce4c19090928ba5ecb83b8e5486 100644 (file)
@@ -538,10 +538,6 @@ static void tcm_vhost_submission_work(struct work_struct *work)
 
        if (tv_cmd->tvc_sgl_count) {
                sg_ptr = tv_cmd->tvc_sgl;
-               /*
-                * For BIDI commands, pass in the extra READ buffer
-                * to transport_generic_map_mem_to_cmd() below..
-                */
 /* FIXME: Fix BIDI operation in tcm_vhost_submission_work() */
 #if 0
                if (se_cmd->se_cmd_flags & SCF_BIDI) {
@@ -579,10 +575,8 @@ static void vhost_scsi_handle_vq(struct vhost_scsi *vs)
 
        /* Must use ioctl VHOST_SCSI_SET_ENDPOINT */
        tv_tpg = vs->vs_tpg;
-       if (unlikely(!tv_tpg)) {
-               pr_err("%s endpoint not set\n", __func__);
+       if (unlikely(!tv_tpg))
                return;
-       }
 
        mutex_lock(&vq->mutex);
        vhost_disable_notify(&vs->dev, vq);