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>
This commit is contained in:
parent
082369e62c
commit
01ed1d527c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user