summaryrefslogtreecommitdiffstats
path: root/hw/scsi
diff options
context:
space:
mode:
authorPaolo Bonzini2014-04-02 13:24:23 +0200
committerPaolo Bonzini2014-04-02 13:24:23 +0200
commitd581eb7ca4b58649ade5fb7570ecf6b4b9a41879 (patch)
tree5d036870b997f307cf4d6582060183244d387c44 /hw/scsi
parentconfigure: add option to disable -fstack-protector flags (diff)
downloadqemu-d581eb7ca4b58649ade5fb7570ecf6b4b9a41879.tar.gz
qemu-d581eb7ca4b58649ade5fb7570ecf6b4b9a41879.tar.xz
qemu-d581eb7ca4b58649ade5fb7570ecf6b4b9a41879.zip
scsi-bus: remove bogus assertion
This assertion is invalid, because get_sg_list can return an empty sg-list even for commands that transfer no data (such as SYNCHRONIZE CACHE). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi')
-rw-r--r--hw/scsi/scsi-bus.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c
index eaad925cbb..ae921a6a75 100644
--- a/hw/scsi/scsi-bus.c
+++ b/hw/scsi/scsi-bus.c
@@ -101,7 +101,6 @@ static void scsi_dma_restart_bh(void *opaque)
scsi_req_continue(req);
break;
case SCSI_XFER_NONE:
- assert(!req->sg);
scsi_req_dequeue(req);
scsi_req_enqueue(req);
break;