Skip to contentSkip to conversation

vl: Clean up unnecessary boot_order complications

PATCH Applied [email protected] 2 participants 2 messages Oct 1, 2013 – Oct 2, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vl: Clean up unnecessary boot_order complications

From: Markus Armbruster <[email protected]>

Messed up in commit 8281abd.

---
 vl.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
vl.c +2 -4
index 983cdc6..7e1f408 100644
@@ -2825,7 +2825,7 @@ int main(int argc, char **argv, char **envp)
     const char *icount_option = NULL;
     const char *initrd_filename;
     const char *kernel_filename, *kernel_cmdline;
-    const char *boot_order = NULL;
+    const char *boot_order;
     DisplayState *ds;
     int cyls, heads, secs, translation;
     QemuOpts *hda_opts = NULL, *opts, *machine_opts;
@@ -4050,9 +4050,7 @@ int main(int argc, char **argv, char **envp)
     initrd_filename = qemu_opt_get(machine_opts, "initrd");
     kernel_cmdline = qemu_opt_get(machine_opts, "append");
 
-    if (!boot_order) {
-        boot_order = machine->default_boot_order;
-    }
+    boot_order = machine->default_boot_order;
     opts = qemu_opts_find(qemu_find_opts("boot-opts"), NULL);
     if (opts) {
         char *normal_boot_order;
Signature · 1 line
1.8.1.4