bootdevice: add check in restore_boot_order()
commit76349f5ba8f4e2f0b8c93c12ec0950a8bc77408a
authorGonglei <arei.gonglei@huawei.com>
Thu, 29 Jan 2015 13:13:47 +0000 (29 13:13 +0000)
committerLili <huanglili.huang@huawei.com>
Tue, 3 Mar 2015 05:13:21 +0000 (3 13:13 +0800)
treeb86939dc5f1703725638875a6a51e37568931683
parentf05f47bb5f07ca32a23edf1df3dd75f5004f9325
bootdevice: add check in restore_boot_order()

qemu_boot_set() can't fail in restore_boot_order(),
then simply assert it doesn't fail, by passing
&error_abort if boot_set_handler set.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
bootdevice.c