summaryrefslogtreecommitdiffstats
path: root/hw/ide/piix.c
diff options
context:
space:
mode:
authorMarkus Armbruster2014-09-08 18:51:00 +0200
committerKevin Wolf2014-09-10 10:41:29 +0200
commit7ca9b7c03574291ec845f9d39fee0b1d26f9ce38 (patch)
treea2e2039549579379a018baae403e3e5e37508cb9 /hw/ide/piix.c
parentxen_disk: Plug memory leak on error path (diff)
downloadqemu-7ca9b7c03574291ec845f9d39fee0b1d26f9ce38.tar.gz
qemu-7ca9b7c03574291ec845f9d39fee0b1d26f9ce38.tar.xz
qemu-7ca9b7c03574291ec845f9d39fee0b1d26f9ce38.zip
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/ide/piix.c')
-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 59319eb6c1..49e78a738a 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);
}