mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
ide: simplify async_cmd_done callbacks
Drop the unused return value. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
829b933b70
commit
c039cb1e5a
2 changed files with 2 additions and 4 deletions
|
@ -1116,7 +1116,7 @@ static int ahci_dma_add_status(IDEDMA *dma, int status)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int ahci_async_cmd_done(IDEDMA *dma)
|
||||
static void ahci_async_cmd_done(IDEDMA *dma)
|
||||
{
|
||||
AHCIDevice *ad = DO_UPCAST(AHCIDevice, dma, dma);
|
||||
|
||||
|
@ -1130,8 +1130,6 @@ static int ahci_async_cmd_done(IDEDMA *dma)
|
|||
ad->check_bh = qemu_bh_new(ahci_check_cmd_bh, ad);
|
||||
qemu_bh_schedule(ad->check_bh);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void ahci_irq_set(void *opaque, int n, int level)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue