aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliguang <lig.fnst@cn.fujitsu.com>2013-03-22 16:44:14 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2013-03-22 16:09:59 +0100
commit01ed1d527c59356e6c4c9d54b5710a3c9e78ce4e (patch)
tree4b4827d121e0b0f32e54ba6725b98ecd55eed37b
parent082369e62c5bbaba89f173c2b803bc24115bb111 (diff)
qdev: remove redundant abort()
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>
-rw-r--r--hw/qdev.c3
1 files changed, 1 insertions, 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;