diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-04-02 13:24:23 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-04-02 13:24:23 +0200 |
commit | d581eb7ca4b58649ade5fb7570ecf6b4b9a41879 (patch) | |
tree | 5d036870b997f307cf4d6582060183244d387c44 | |
parent | 63678e17cf399ff81b93417fe7bee8d6ef6b6b1b (diff) | |
download | qemu-d581eb7ca4b58649ade5fb7570ecf6b4b9a41879.zip qemu-d581eb7ca4b58649ade5fb7570ecf6b4b9a41879.tar.gz qemu-d581eb7ca4b58649ade5fb7570ecf6b4b9a41879.tar.bz2 |
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.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c index eaad925..ae921a6 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; |