aboutsummaryrefslogtreecommitdiff
path: root/hw/ide/pci.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/pci.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/pci.c')
-rw-r--r--hw/ide/pci.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/ide/pci.c b/hw/ide/pci.c
index 9dc3cc5611..1ee8c0a4d5 100644
--- a/hw/ide/pci.c
+++ b/hw/ide/pci.c
@@ -264,11 +264,6 @@ static void bmdma_reset(IDEDMA *dma)
bm->nsector = 0;
}
-static int bmdma_start_transfer(IDEDMA *dma)
-{
- return 0;
-}
-
static void bmdma_irq(void *opaque, int n, int level)
{
BMDMAState *bm = opaque;
@@ -500,7 +495,6 @@ void pci_ide_create_devs(PCIDevice *dev, DriveInfo **hd_table)
static const struct IDEDMAOps bmdma_ops = {
.start_dma = bmdma_start_dma,
- .start_transfer = bmdma_start_transfer,
.prepare_buf = bmdma_prepare_buf,
.rw_buf = bmdma_rw_buf,
.set_unit = bmdma_set_unit,