aboutsummaryrefslogtreecommitdiff
path: root/include/hw/scsi/esp.h
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2020-11-16 19:40:36 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-02-25 14:14:32 +0100
commit17ea26c2d80a695b4d3af9ae2eaa438095029773 (patch)
treee771a7d7468347641ae40eb0262deaeebc950fdb /include/hw/scsi/esp.h
parent782a78c9e994c2be23467262f50e885a0eb0d9fc (diff)
downloadqemu-17ea26c2d80a695b4d3af9ae2eaa438095029773.zip
qemu-17ea26c2d80a695b4d3af9ae2eaa438095029773.tar.gz
qemu-17ea26c2d80a695b4d3af9ae2eaa438095029773.tar.bz2
scsi: drop 'result' argument from command_complete callback
The command complete callback has a SCSIRequest as the first argument, and the status field of that structure is identical to the 'status' argument. So drop the argument from the callback. Signed-off-by: Hannes Reinecke <hare@suse.de> Message-Id: <20201116184041.60465-3-hare@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/scsi/esp.h')
-rw-r--r--include/hw/scsi/esp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/scsi/esp.h b/include/hw/scsi/esp.h
index 60cc304..d8a6263 100644
--- a/include/hw/scsi/esp.h
+++ b/include/hw/scsi/esp.h
@@ -151,7 +151,7 @@ struct SysBusESPState {
void esp_dma_enable(ESPState *s, int irq, int level);
void esp_request_cancelled(SCSIRequest *req);
-void esp_command_complete(SCSIRequest *req, uint32_t status, size_t resid);
+void esp_command_complete(SCSIRequest *req, size_t resid);
void esp_transfer_data(SCSIRequest *req, uint32_t len);
void esp_hard_reset(ESPState *s);
uint64_t esp_reg_read(ESPState *s, uint32_t saddr);