Patchwork [8/8] qdev: remove redundant abort()

login
register
mail settings
Submitter Stefan Hajnoczi
Date March 22, 2013, 3:14 p.m.
Message ID <1363965261-22267-9-git-send-email-stefanha@redhat.com>
Download mbox | patch
Permalink /patch/230098/
State New
Headers show

Comments

Stefan Hajnoczi - March 22, 2013, 3:14 p.m.
From: liguang <lig.fnst@cn.fujitsu.com>

Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: liguang <lig.fnst@cn.fujitsu.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 hw/qdev.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch

diff --git a/hw/qdev.c b/hw/qdev.c
index 0b20280..708a058 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -117,11 +117,10 @@  DeviceState *qdev_create(BusState *bus, const char *name)
         if (bus) {
             error_report("Unknown device '%s' for bus '%s'", name,
                          object_get_typename(OBJECT(bus)));
-            abort();
         } else {
             error_report("Unknown device '%s' for default sysbus", name);
-            abort();
         }
+        abort();
     }
 
     return dev;