]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: Correct handling of --rm_memory
authorSimon Glass <sjg@chromium.org>
Thu, 19 Aug 2021 03:40:24 +0000 (21:40 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 16 Sep 2021 17:19:25 +0000 (13:19 -0400)
This option has no argument so we should not trip to skip one.

Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c

index 1103530941b3b4c8016d8c9018c7574ee3e7b603..151f42a5d6c42c8099fae153d6a897e6a18a1034 100644 (file)
@@ -690,7 +690,6 @@ static int add_args(char ***argvp, char *add_args[], int count)
                                continue;
                        }
                } else if (!strcmp(arg, "--rm_memory")) {
-                       ap++;
                        continue;
                }
                argv[argc++] = arg;