From patchwork Thu Aug 19 03:40:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1518339 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=RuHrxTZe; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GqrCg2rtFz9sW8 for ; Thu, 19 Aug 2021 13:41:19 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3A7DF82D74; Thu, 19 Aug 2021 05:41:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="RuHrxTZe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7DDAE82DD7; Thu, 19 Aug 2021 05:40:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C745E82DE8 for ; Thu, 19 Aug 2021 05:40:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x32b.google.com with SMTP id 108-20020a9d01750000b029050e5cc11ae3so6984832otu.5 for ; Wed, 18 Aug 2021 20:40:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=i+Lce8buIEtTh9OT5nOulz2ZLCTq+/RpDEbTPDoxC9c=; b=RuHrxTZeWLFCwcCn/sa5KcW1czPiYj+/lXcaYC/GfT8q3uO6xKbYvUuje9e8SN2fg8 B/Pub5qw4Wx1MZsHjCaRfGtb9yUTEnwPNkizeSMosQSOIAJ7e0gdBmVACSYRvz9HuEiu PGDtPyqSHmZcNSXUgoCu71llEQ8v7fU6w/k7A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=i+Lce8buIEtTh9OT5nOulz2ZLCTq+/RpDEbTPDoxC9c=; b=Sb0twhB7IOuNMx0SkHuGACjbco0zz29HXx2m9tkX99zEbXKzRsBEs27ITUdWO4EIZa CiHPzdqwDHz696OCqk9pbN5fYC6vbrosjaHcn3TrlvxwnNz3m5sGsq9fJ5hXMtT5Nl5v OWoAXVNqSgjrCzlJcrTNCJBOeb0nXXK00BvA9AojoKlquynTzfkC3aP/hw4ANE6VJG3P Mi5lgF2Nuj6iE+GamY7uSWYK6iLJAdF77B05sw6J3iM7VoXhWj3C3SvmovzwPQBvT5Cj EU/NZW4YUuf8ooxZyvNm3d0BAC73crmZgiezq2jq5jereZKUUq3lP3X1PWbxjbp2oEFF fHOg== X-Gm-Message-State: AOAM5332yNEKbetwzVgtIo0GEYxqJmLVpOxBxL4X6usdiAUXyfR21xbh q/rUOxZr6a6nrWw+XTnOjDfHSlb2/E7bqA== X-Google-Smtp-Source: ABdhPJx2cKiWKHjNBn/FloyqIpeBZTYBJffdl/1XaLix78H53qohsIPDL/fH2edJ+Vsl74mDHfHICg== X-Received: by 2002:a9d:bf0:: with SMTP id 103mr6309290oth.212.1629344442315; Wed, 18 Aug 2021 20:40:42 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id q27sm415877oof.12.2021.08.18.20.40.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Aug 2021 20:40:41 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Heinrich Schuchardt , =?utf-8?q?Marek_Beh=C3=BAn?= , Patrick Delaunay Subject: [PATCH 02/11] sandbox: Correct handling of --rm_memory Date: Wed, 18 Aug 2021 21:40:24 -0600 Message-Id: <20210819034033.1617201-3-sjg@chromium.org> X-Mailer: git-send-email 2.33.0.rc1.237.g0d66db33f3-goog In-Reply-To: <20210819034033.1617201-1-sjg@chromium.org> References: <20210819034033.1617201-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This option has no argument so we should not trip to skip one. Fix it. Signed-off-by: Simon Glass --- 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;