From cc601cb785bbbd1a017d05d69763cd2c2e1ca3a4 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 22 Mar 2010 11:38:13 +0100 Subject: [PATCH] qdev: Convert qdev_unplug() to QError Note: our device unplug methods don't need conversion work, because they can't currently fail. Signed-off-by: Markus Armbruster Signed-off-by: Luiz Capitulino --- hw/qdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 17a46a7bb3..0612dc0ba5 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -287,8 +287,7 @@ int qdev_init(DeviceState *dev) int qdev_unplug(DeviceState *dev) { if (!dev->parent_bus->allow_hotplug) { - error_report("Bus %s does not support hotplugging", - dev->parent_bus->name); + qerror_report(QERR_BUS_NO_HOTPLUG, dev->parent_bus->name); return -1; } assert(dev->info->unplug != NULL); -- 2.11.4.GIT