mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -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
|
@ -76,6 +76,6 @@ void drive_hot_add(Monitor *mon, const QDict *qdict)
|
|||
|
||||
err:
|
||||
if (dinfo) {
|
||||
drive_put_ref(dinfo);
|
||||
drive_del(dinfo);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue