diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-10-07 13:59:09 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-10-20 13:41:26 +0200 |
commit | b9fe8a7a12f18adebba5616a3e9f44143a78c07e (patch) | |
tree | d2c4505d21575b0242f28107db529de8db246fcf /device-hotplug.c | |
parent | 9ba10c95a4a63ef453893ba16bf1c8e11a1d3c39 (diff) |
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>
Diffstat (limited to 'device-hotplug.c')
-rw-r--r-- | device-hotplug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/device-hotplug.c b/device-hotplug.c index e6a1ffb9fa..9e38cc4808 100644 --- a/device-hotplug.c +++ b/device-hotplug.c @@ -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)); } } |