From ae60e8e3783a66463d0736f3a48da9a66fd5cbd3 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 6 Jun 2014 14:50:59 +0200 Subject: blockdev: Remove unused DriveInfo reference count It's always one since commit fa510eb dropped the last drive_get_ref(). Signed-off-by: Markus Armbruster Reviewed-by: Benoit Canet Signed-off-by: Stefan Hajnoczi --- device-hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'device-hotplug.c') diff --git a/device-hotplug.c b/device-hotplug.c index fc09d10..e6a1ffb 100644 --- a/device-hotplug.c +++ b/device-hotplug.c @@ -76,6 +76,6 @@ void drive_hot_add(Monitor *mon, const QDict *qdict) err: if (dinfo) { - drive_put_ref(dinfo); + drive_del(dinfo); } } -- cgit v1.1