diff options
author | Paolo Bonzini | 2014-08-04 23:11:07 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2014-08-15 19:03:12 +0200 |
commit | 829b933b704a329d60d2ea1fe4c8e8e0a5505d8a (patch) | |
tree | 3533aeabdd24bf42908a34f1812db07f0d60c56c /hw/ide/pci.c | |
parent | ide: simplify reset callbacks (diff) | |
download | qemu-829b933b704a329d60d2ea1fe4c8e8e0a5505d8a.tar.gz qemu-829b933b704a329d60d2ea1fe4c8e8e0a5505d8a.tar.xz qemu-829b933b704a329d60d2ea1fe4c8e8e0a5505d8a.zip |
ide: simplify set_inactive 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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/ide/pci.c b/hw/ide/pci.c index c24496a992..9dc3cc5611 100644 --- a/hw/ide/pci.c +++ b/hw/ide/pci.c @@ -160,15 +160,13 @@ static int bmdma_add_status(IDEDMA *dma, int status) return 0; } -static int bmdma_set_inactive(IDEDMA *dma) +static void bmdma_set_inactive(IDEDMA *dma) { BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma); bm->status &= ~BM_STATUS_DMAING; bm->dma_cb = NULL; bm->unit = -1; - - return 0; } static void bmdma_restart_dma(BMDMAState *bm, enum ide_dma_cmd dma_cmd) |