summary refs log tree commit diff stats
path: root/hw/esp.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-04-21 13:21:02 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2011-05-26 12:14:16 +0200
commit0c34459b6af1b7ed2f000995b9bcb1c722646fbb (patch)
treede9567cb5953e0ed8a71539772b923983feecda5 /hw/esp.c
parentad3376cc558f69606ac25ab6d597db71c969d8b6 (diff)
downloadfocaccia-qemu-0c34459b6af1b7ed2f000995b9bcb1c722646fbb.tar.gz
focaccia-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/esp.c')
-rw-r--r--hw/esp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/esp.c b/hw/esp.c
index ce2d3b070e..d4847dbc5f 100644
--- a/hw/esp.c
+++ b/hw/esp.c
@@ -419,7 +419,7 @@ static void esp_command_complete(SCSIRequest *req, int reason, uint32_t arg)
     } else {
         DPRINTF("transfer %d/%d\n", s->dma_left, s->ti_size);
         s->async_len = arg;
-        s->async_buf = s->current_dev->info->get_buf(req);
+        s->async_buf = scsi_req_get_buf(req);
         if (s->dma_left) {
             esp_do_dma(s);
         } else if (s->dma_counter != 0 && s->ti_size <= 0) {