[PATCH 02/11] sandbox: Correct handling of --rm_memory

Simon Glass sjg at chromium.org
Thu Aug 19 05:40:24 CEST 2021


This option has no argument so we should not trip to skip one.

Fix it.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/sandbox/cpu/os.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c
index 1103530941b..151f42a5d6c 100644
--- a/arch/sandbox/cpu/os.c
+++ b/arch/sandbox/cpu/os.c
@@ -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;
-- 
2.33.0.rc1.237.g0d66db33f3-goog



More information about the U-Boot mailing list