diff options
author | Markus Armbruster <armbru@redhat.com> | 2016-01-14 16:02:12 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2016-02-08 17:22:00 +0100 |
commit | 07d04a0219b9f385de5884717e3e7fb0c6623979 (patch) | |
tree | 4ad22edc3ff0c6552954cdd064dfbef50eee2215 /vl.c | |
parent | e4a096b1cd4350eeca5dcdc391ab333d2083d7fd (diff) |
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>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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)); } |