Skip to content

Commit

Permalink
tcm_vhost: Remove double check of response
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Asias He authored and Nicholas Bellinger committed Apr 11, 2013
1 parent dfd5d56 commit f6da51c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/vhost/tcm_vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,15 +705,6 @@ static void vhost_scsi_handle_vq(struct vhost_scsi *vs,

tv_cmd->tvc_vhost = vs;
tv_cmd->tvc_vq = vq;

if (unlikely(vq->iov[out].iov_len !=
sizeof(struct virtio_scsi_cmd_resp))) {
vq_err(vq, "Expecting virtio_scsi_cmd_resp, got %zu"
" bytes, out: %d, in: %d\n",
vq->iov[out].iov_len, out, in);
break;
}

tv_cmd->tvc_resp = vq->iov[out].iov_base;

/*
Expand Down

0 comments on commit f6da51c

Please sign in to comment.