aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-09-08 18:51:00 +0200
committerKevin Wolf <kwolf@redhat.com>2014-09-10 10:41:29 +0200
commit7ca9b7c03574291ec845f9d39fee0b1d26f9ce38 (patch)
treea2e2039549579379a018baae403e3e5e37508cb9 /hw
parentcedccf1381c2fd6592d6322f3cd9cc6bf6621967 (diff)
downloadqemu-7ca9b7c03574291ec845f9d39fee0b1d26f9ce38.zip
qemu-7ca9b7c03574291ec845f9d39fee0b1d26f9ce38.tar.gz
qemu-7ca9b7c03574291ec845f9d39fee0b1d26f9ce38.tar.bz2
xen: Drop redundant bdrv_close() from pci_piix3_xen_ide_unplug()
drive_del() closes just fine. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/ide/piix.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/ide/piix.c b/hw/ide/piix.c
index 59319eb..49e78a7 100644
--- a/hw/ide/piix.c
+++ b/hw/ide/piix.c
@@ -182,7 +182,6 @@ int pci_piix3_xen_ide_unplug(DeviceState *dev)
if (ds) {
bdrv_detach_dev(di->bdrv, ds);
}
- bdrv_close(di->bdrv);
pci_ide->bus[di->bus].ifs[di->unit].bs = NULL;
drive_del(di);
}