]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
qdev: Delete dead code
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Thu, 2 Jan 2014 02:47:33 +0000 (18:47 -0800)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 6 Jan 2014 20:02:11 +0000 (15:02 -0500)
This is unreachable code, as it's already asserted that no errors have
occurred. Delete.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
hw/core/qdev.c

index e374a9399fc687f328b6ae9a40991cc58d6c77e3..adbff187bd13682bc7c6cd005bdbd800b4138a74 100644 (file)
@@ -746,11 +746,6 @@ static void device_initfn(Object *obj)
         }
         class = object_class_get_parent(class);
     } while (class != object_class_by_name(TYPE_DEVICE));
-    if (err != NULL) {
-        qerror_report_err(err);
-        error_free(err);
-        exit(1);
-    }
 
     object_property_add_link(OBJECT(dev), "parent_bus", TYPE_BUS,
                              (Object **)&dev->parent_bus, &err);