aboutsummaryrefslogtreecommitdiff
path: root/hw/ide/ahci.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-08-04 17:11:09 -0400
committerStefan Hajnoczi <stefanha@redhat.com>2014-08-15 18:03:12 +0100
commit446351236b6e9c53b25e30d107c6235347df1dde (patch)
treed1edeac3f954425c0fdef9d89625ef9f4db2a26f /hw/ide/ahci.c
parentc039cb1e5a7bf1f71fddbbe199eff7fbbfddb416 (diff)
ide: simplify start_transfer callbacks
Drop the unused return value and make the callback optional. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/ide/ahci.c')
-rw-r--r--hw/ide/ahci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
index e494503330..adbac3d52f 100644
--- a/hw/ide/ahci.c
+++ b/hw/ide/ahci.c
@@ -991,7 +991,7 @@ out:
}
/* DMA dev <-> ram */
-static int ahci_start_transfer(IDEDMA *dma)
+static void ahci_start_transfer(IDEDMA *dma)
{
AHCIDevice *ad = DO_UPCAST(AHCIDevice, dma, dma);
IDEState *s = &ad->port.ifs[0];
@@ -1041,8 +1041,6 @@ out:
/* done with DMA */
ahci_trigger_irq(ad->hba, ad, PORT_IRQ_STAT_DSS);
}
-
- return 0;
}
static void ahci_start_dma(IDEDMA *dma, IDEState *s,