blockdev: Eliminate drive_del()
drive_del() has become a trivial wrapper around blk_unref(). Get rid of it. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
committed by
Kevin Wolf
parent
9ba10c95a4
commit
b9fe8a7a12
+2
-1
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "hw/hw.h"
|
||||
#include "hw/boards.h"
|
||||
#include "sysemu/block-backend.h"
|
||||
#include "sysemu/blockdev.h"
|
||||
#include "qemu/config-file.h"
|
||||
#include "sysemu/sysemu.h"
|
||||
@@ -76,6 +77,6 @@ void drive_hot_add(Monitor *mon, const QDict *qdict)
|
||||
|
||||
err:
|
||||
if (dinfo) {
|
||||
drive_del(dinfo);
|
||||
blk_unref(blk_by_legacy_dinfo(dinfo));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user