mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00: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:
committed by
Stefan Hajnoczi
parent
60e19e06a4
commit
ae60e8e378
@@ -76,6 +76,6 @@ void drive_hot_add(Monitor *mon, const QDict *qdict)
|
||||
|
||||
err:
|
||||
if (dinfo) {
|
||||
drive_put_ref(dinfo);
|
||||
drive_del(dinfo);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user