From 01ed1d527c59356e6c4c9d54b5710a3c9e78ce4e Mon Sep 17 00:00:00 2001 From: liguang Date: Fri, 22 Mar 2013 16:44:14 +0800 Subject: qdev: remove redundant abort() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Andreas Färber Signed-off-by: liguang Signed-off-by: Stefan Hajnoczi --- hw/qdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 0b20280133..708a058a91 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; -- cgit v1.2.3