diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2014-01-01 18:47:33 -0800 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-01-06 15:02:11 -0500 |
commit | 90c3f6e02662d2d8edf059168a037a119ed208cb (patch) | |
tree | 220dfb80e21c88334ec6533d337137388d8f0708 /hw/core | |
parent | 5d24ee70bcbcf578614193526bcd5ed30a8eb16c (diff) |
qdev: Delete dead code
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>
Diffstat (limited to 'hw/core')
-rw-r--r-- | hw/core/qdev.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/core/qdev.c b/hw/core/qdev.c index e374a9399f..adbff187bd 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -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); |