[PATCH v2 1/5] vl: fix qemu_validate_options() indention

Gerd Hoffmann posted 5 patches 2 months, 2 weeks ago
[PATCH v2 1/5] vl: fix qemu_validate_options() indention
Posted by Gerd Hoffmann 2 months, 2 weeks ago
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 system/vl.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/system/vl.c b/system/vl.c
index 01b8b8e77ad1..302ad81285b7 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -2426,15 +2426,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 (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 (initrd_filename != NULL) {
+            error_report("-initrd only allowed with -kernel option");
+            exit(1);
+        }
     }
 
     if (loadvm && incoming) {
-- 
2.46.0