summaryrefslogtreecommitdiffstats
path: root/hw/ide
diff options
context:
space:
mode:
authorMarkus Armbruster2014-06-06 14:50:59 +0200
committerStefan Hajnoczi2014-06-16 11:23:19 +0200
commitae60e8e3783a66463d0736f3a48da9a66fd5cbd3 (patch)
treea3f758e24a5bdecbce8a79a771a9d64a31d836a7 /hw/ide
parentblockdev: Rename drive_init(), drive_uninit() to drive_new(), drive_del() (diff)
downloadqemu-ae60e8e3783a66463d0736f3a48da9a66fd5cbd3.tar.gz
qemu-ae60e8e3783a66463d0736f3a48da9a66fd5cbd3.tar.xz
qemu-ae60e8e3783a66463d0736f3a48da9a66fd5cbd3.zip
blockdev: Remove unused DriveInfo reference count
It's always one since commit fa510eb dropped the last drive_get_ref(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Benoit Canet <benoit@irqsave.net> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/ide')
-rw-r--r--hw/ide/piix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/piix.c b/hw/ide/piix.c
index 40757eb001..8651726f52 100644
--- a/hw/ide/piix.c
+++ b/hw/ide/piix.c
@@ -184,7 +184,7 @@ int pci_piix3_xen_ide_unplug(DeviceState *dev)
}
bdrv_close(di->bdrv);
pci_ide->bus[di->bus].ifs[di->unit].bs = NULL;
- drive_put_ref(di);
+ drive_del(di);
}
}
qdev_reset_all(DEVICE(dev));