mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
Use error_fatal to simplify obvious fatal errors (again)
Done with the Coccinelle semantic patch from commit 007b065
, plus
manual clean up of dead variables.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1452783732-6581-1-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
e4a096b1cd
commit
07d04a0219
5 changed files with 5 additions and 30 deletions
7
vl.c
7
vl.c
|
@ -4555,12 +4555,7 @@ int main(int argc, char **argv, char **envp)
|
|||
net_check_clients();
|
||||
|
||||
if (boot_once) {
|
||||
Error *local_err = NULL;
|
||||
qemu_boot_set(boot_once, &local_err);
|
||||
if (local_err) {
|
||||
error_report_err(local_err);
|
||||
exit(1);
|
||||
}
|
||||
qemu_boot_set(boot_once, &error_fatal);
|
||||
qemu_register_reset(restore_boot_order, g_strdup(boot_order));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue