aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vhost
diff options
context:
space:
mode:
authorAsias He <asias@redhat.com>2013-04-10 03:06:13 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2013-04-11 04:48:11 -0400
commitf6da51c3ef07c593a410551af4cad093e2fbe755 (patch)
treed5b1b924afe6e6afe9e94bdc99a0cfff46fa1929 /drivers/vhost
parentdfd5d5692c7ddf27380511b80a3dc590acfc4eee (diff)
tcm_vhost: Remove double check of response
We did the length of response check twice. Signed-off-by: Asias He <asias@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/vhost')
-rw-r--r--drivers/vhost/tcm_vhost.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c
index c127731b4230..28c112f23830 100644
--- a/drivers/vhost/tcm_vhost.c
+++ b/drivers/vhost/tcm_vhost.c
@@ -705,15 +705,6 @@ static void vhost_scsi_handle_vq(struct vhost_scsi *vs,
705 705
706 tv_cmd->tvc_vhost = vs; 706 tv_cmd->tvc_vhost = vs;
707 tv_cmd->tvc_vq = vq; 707 tv_cmd->tvc_vq = vq;
708
709 if (unlikely(vq->iov[out].iov_len !=
710 sizeof(struct virtio_scsi_cmd_resp))) {
711 vq_err(vq, "Expecting virtio_scsi_cmd_resp, got %zu"
712 " bytes, out: %d, in: %d\n",
713 vq->iov[out].iov_len, out, in);
714 break;
715 }
716
717 tv_cmd->tvc_resp = vq->iov[out].iov_base; 708 tv_cmd->tvc_resp = vq->iov[out].iov_base;
718 709
719 /* 710 /*