aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-04-02 13:24:23 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-04-02 13:24:23 +0200
commitd581eb7ca4b58649ade5fb7570ecf6b4b9a41879 (patch)
tree5d036870b997f307cf4d6582060183244d387c44
parent63678e17cf399ff81b93417fe7bee8d6ef6b6b1b (diff)
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>
-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;