]> git.proxmox.com Git - mirror_qemu.git/commit
qdev: Use error_abort instead of using local_err
authorGonglei <arei.gonglei@huawei.com>
Tue, 2 Sep 2014 12:03:05 +0000 (20:03 +0800)
committerAndreas Färber <afaerber@suse.de>
Thu, 4 Sep 2014 14:14:47 +0000 (16:14 +0200)
commitd578029e71311de1b1476229d88d4aca02b783a3
tree36e5212043359712b20ea110367a26c7f8f71584
parent843ef73a690aabbea6a897e86a426ee7554d7aff
qdev: Use error_abort instead of using local_err

This error can not happen normally. If it happens, it indicates
something very wrong, we should abort QEMU. Moreover, the
user can only refer to /machine/peripheral or /objects, not
/machine/unattached.

While at it, remove superfluous check about local_err.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/core/qdev.c