summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorFam Zheng2016-06-27 20:28:31 +0200
committerJohn Snow2016-06-27 20:28:31 +0200
commit0d0437aac6dc94bdc1601968bbb9e623e34bd3e7 (patch)
tree1d4990fc37d8200bf045720b8004cbb8300f16e6 /hw
parenthw/net/e1000: Don't use *_to_cpup() (diff)
downloadqemu-0d0437aac6dc94bdc1601968bbb9e623e34bd3e7.tar.gz
qemu-0d0437aac6dc94bdc1601968bbb9e623e34bd3e7.tar.xz
qemu-0d0437aac6dc94bdc1601968bbb9e623e34bd3e7.zip
macio: Use blk_drain instead of blk_drain_all
We only care about the associated backend, so blk_drain is more appropriate here. Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Message-id: 20160612065603.21911-1-famz@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/ide/macio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/macio.c b/hw/ide/macio.c
index fa57352fc8..56cc50661f 100644
--- a/hw/ide/macio.c
+++ b/hw/ide/macio.c
@@ -406,7 +406,7 @@ static void pmac_ide_flush(DBDMA_io *io)
IDEState *s = idebus_active_if(&m->bus);
if (s->bus->dma->aiocb) {
- blk_drain_all();
+ blk_drain(s->blk);
}
}