mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
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>
This commit is contained in:
parent
60e19e06a4
commit
ae60e8e378
4 changed files with 5 additions and 21 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue