]> Git Repo - qemu.git/commitdiff
scsi-bus: remove bogus assertion
authorPaolo Bonzini <[email protected]>
Wed, 2 Apr 2014 11:24:23 +0000 (13:24 +0200)
committerPaolo Bonzini <[email protected]>
Wed, 2 Apr 2014 11:24:23 +0000 (13:24 +0200)
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 <[email protected]>
hw/scsi/scsi-bus.c

index eaad925cbbfdeb5b9e020a9218a728d95f162c03..ae921a6a751010ed909a0cad69065bf399ebdf72 100644 (file)
@@ -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;
This page took 0.032691 seconds and 4 git commands to generate.