projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfd5d56
)
tcm_vhost: Remove double check of response
author
Asias He
<
[email protected]
>
Wed, 10 Apr 2013 07:06:13 +0000
(15:06 +0800)
committer
Nicholas Bellinger
<
[email protected]
>
Thu, 11 Apr 2013 08:48:11 +0000
(
01:48
-0700)
We did the length of response check twice.
Signed-off-by: Asias He <
[email protected]
>
Acked-by: Michael S. Tsirkin <
[email protected]
>
Signed-off-by: Nicholas Bellinger <
[email protected]
>
drivers/vhost/tcm_vhost.c
patch
|
blob
|
history
diff --git
a/drivers/vhost/tcm_vhost.c
b/drivers/vhost/tcm_vhost.c
index c127731b42302d4fc9248d6fa25c01942c8e1c3b..28c112f23830990bfaab71ca25ca0df2769862d2 100644
(file)
--- 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,
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;
/*