diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-08-03 10:49:14 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-08-12 08:30:20 -0500 |
commit | fdaef06917100d97782df550c1807a1da054e27e (patch) | |
tree | bf695288839d64bb1077e176a45ac82400bfc1c3 /hw/scsi-generic.c | |
parent | afa46c468acc18914c2773538f1b088c507766ee (diff) | |
download | qemu-fdaef06917100d97782df550c1807a1da054e27e.tar.gz qemu-fdaef06917100d97782df550c1807a1da054e27e.tar.bz2 qemu-fdaef06917100d97782df550c1807a1da054e27e.zip |
scsi: move handling of REPORT LUNS and invalid LUNs to common code
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi-generic.c')
-rw-r--r-- | hw/scsi-generic.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index 3b43f1c7e2..70265d06b9 100644 --- a/hw/scsi-generic.c +++ b/hw/scsi-generic.c @@ -287,13 +287,6 @@ static int32_t scsi_send_command(SCSIRequest *req, uint8_t *cmd) SCSIGenericReq *r = DO_UPCAST(SCSIGenericReq, req, req); int ret; - if (cmd[0] != REQUEST_SENSE && req->lun != s->qdev.lun) { - DPRINTF("Unimplemented LUN %d\n", req->lun); - scsi_req_build_sense(&r->req, SENSE_CODE(LUN_NOT_SUPPORTED)); - scsi_req_complete(&r->req, CHECK_CONDITION); - return 0; - } - scsi_req_fixup(&r->req); DPRINTF("Command: lun=%d tag=0x%x len %zd data=0x%02x", lun, tag, |