diff mbox series

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

Message ID 20210819034033.1617201-3-sjg@chromium.org
State Accepted
Commit 130401e0171f4a17511bfd8ba061a11dc10ff18a
Delegated to: Tom Rini
Headers show
Series sandbox: Minor fixes and improvements | expand

Commit Message

Simon Glass Aug. 19, 2021, 3:40 a.m. UTC
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 | 1 -
 1 file changed, 1 deletion(-)

Comments

Tom Rini Sept. 23, 2021, 2:08 a.m. UTC | #1
On Wed, Aug 18, 2021 at 09:40:24PM -0600, Simon Glass wrote:

> This option has no argument so we should not trip to skip one.
> 
> Fix it.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/next, thanks!
diff mbox series

Patch

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;