diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-04-21 13:21:02 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2011-05-26 12:14:16 +0200 |
commit | 0c34459b6af1b7ed2f000995b9bcb1c722646fbb (patch) | |
tree | de9567cb5953e0ed8a71539772b923983feecda5 /hw/usb-msd.c | |
parent | ad3376cc558f69606ac25ab6d597db71c969d8b6 (diff) | |
download | qemu-0c34459b6af1b7ed2f000995b9bcb1c722646fbb.tar.gz qemu-0c34459b6af1b7ed2f000995b9bcb1c722646fbb.tar.bz2 qemu-0c34459b6af1b7ed2f000995b9bcb1c722646fbb.zip |
scsi: introduce scsi_req_get_buf
... and remove some SCSIDevice variables or fields that now become unused.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'hw/usb-msd.c')
-rw-r--r-- | hw/usb-msd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-msd.c b/hw/usb-msd.c index d4c2234e81..78b57a6c3f 100644 --- a/hw/usb-msd.c +++ b/hw/usb-msd.c @@ -247,7 +247,7 @@ static void usb_msd_command_complete(SCSIRequest *req, int reason, uint32_t arg) } assert((s->mode == USB_MSDM_DATAOUT) == (req->cmd.mode == SCSI_XFER_TO_DEV)); s->scsi_len = arg; - s->scsi_buf = s->scsi_dev->info->get_buf(req); + s->scsi_buf = scsi_req_get_buf(req); if (p) { usb_msd_copy_data(s); if (s->usb_len == 0) { |