aboutsummaryrefslogtreecommitdiff
path: root/hw/scsi-generic.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-04-18 19:07:23 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2011-05-26 12:14:16 +0200
commitfc4f0754c775d4b5e0fb90e503f7e505f62fb8ed (patch)
tree99fd3e7e6ae403005fee0789650183a05e90ba53 /hw/scsi-generic.c
parenta1f0cce2ac0243572ff72aa561da67fe3766a395 (diff)
downloadqemu-fc4f0754c775d4b5e0fb90e503f7e505f62fb8ed.zip
qemu-fc4f0754c775d4b5e0fb90e503f7e505f62fb8ed.tar.gz
qemu-fc4f0754c775d4b5e0fb90e503f7e505f62fb8ed.tar.bz2
scsi: do not call send_command directly
Move the common part of scsi-disk.c and scsi-generic.c to the SCSI layer. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'hw/scsi-generic.c')
-rw-r--r--hw/scsi-generic.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c
index 64cbe8b..90f2a4a 100644
--- a/hw/scsi-generic.c
+++ b/hw/scsi-generic.c
@@ -320,7 +320,6 @@ static int32_t scsi_send_command(SCSIRequest *req, uint8_t *cmd)
SCSIGenericReq *r = DO_UPCAST(SCSIGenericReq, req, req);
int ret;
- scsi_req_enqueue(req);
if (cmd[0] != REQUEST_SENSE &&
(req->lun != s->lun || (cmd[1] >> 5) != s->lun)) {
DPRINTF("Unimplemented LUN %d\n", req->lun ? req->lun : cmd[1] >> 5);