From 07d04a0219b9f385de5884717e3e7fb0c6623979 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 14 Jan 2016 16:02:12 +0100 Subject: 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 Message-Id: <1452783732-6581-1-git-send-email-armbru@redhat.com> Reviewed-by: Eric Blake --- vl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'vl.c') diff --git a/vl.c b/vl.c index c581e3978b..a5502ed7e4 100644 --- a/vl.c +++ b/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)); } -- cgit 1.4.1