summary refs log tree commit diff stats
path: root/system/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2024-09-05 16:12:06 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-11-18 13:36:39 +0100
commit118a2991bbeeb7ea641626d680f100f8ac6eff80 (patch)
treee53e17728f202ee68c21c26a2c95ee8a8a1a24fa /system/vl.c
parentabb1565d3d863cf210f18f70c4a42b0f39b8ccdb (diff)
downloadfocaccia-qemu-118a2991bbeeb7ea641626d680f100f8ac6eff80.tar.gz
focaccia-qemu-118a2991bbeeb7ea641626d680f100f8ac6eff80.zip
vl: fix qemu_validate_options() indention
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240905141211.1253307-2-kraxel@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'system/vl.c')
-rw-r--r--system/vl.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/system/vl.c b/system/vl.c
index d217b3d64d..3bb8f2db9a 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -2427,15 +2427,15 @@ static void qemu_validate_options(const QDict *machine_opts)
     const char *kernel_cmdline = qdict_get_try_str(machine_opts, "append");
 
     if (kernel_filename == NULL) {
-         if (kernel_cmdline != NULL) {
-              error_report("-append only allowed with -kernel option");
-              exit(1);
-          }
-
-          if (initrd_filename != NULL) {
-              error_report("-initrd only allowed with -kernel option");
-              exit(1);
-          }
+        if (kernel_cmdline != NULL) {
+            error_report("-append only allowed with -kernel option");
+            exit(1);
+        }
+
+        if (initrd_filename != NULL) {
+            error_report("-initrd only allowed with -kernel option");
+            exit(1);
+        }
     }
 
     if (loadvm && incoming) {