mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
ide: simplify reset 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>
This commit is contained in:
parent
69f72a2221
commit
1374bec063
5 changed files with 6 additions and 13 deletions
|
@ -1147,11 +1147,6 @@ static void ahci_dma_restart_cb(void *opaque, int running, RunState state)
|
|||
{
|
||||
}
|
||||
|
||||
static int ahci_dma_reset(IDEDMA *dma)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const IDEDMAOps ahci_dma_ops = {
|
||||
.start_dma = ahci_start_dma,
|
||||
.start_transfer = ahci_start_transfer,
|
||||
|
@ -1162,7 +1157,6 @@ static const IDEDMAOps ahci_dma_ops = {
|
|||
.set_inactive = ahci_dma_set_inactive,
|
||||
.async_cmd_done = ahci_async_cmd_done,
|
||||
.restart_cb = ahci_dma_restart_cb,
|
||||
.reset = ahci_dma_reset,
|
||||
};
|
||||
|
||||
void ahci_init(AHCIState *s, DeviceState *qdev, AddressSpace *as, int ports)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue