Message ID | 20240322105733.203888-12-sughosh.ganu@linaro.org |
---|---|
State | Accepted |
Commit | 840afae16f10a6f440b70488fdbf7ab59bf5686d |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:cf01:0:b0:33e:7753:30bd with SMTP id o1csp1274094wrj; Fri, 22 Mar 2024 04:00:32 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV6pZ6T90SpOysclpTdQ/dDXic2JZ++7CpmaPSQXBHZfojnOCM/1Aexow1w0Ay+PjUOvs9Zbp801Etk/q1Tu6vj X-Google-Smtp-Source: AGHT+IErqE4EBfXAPAHVGs6IwAfWKDY8UYGsQcmzWsPlWVjGYs5u8ekp8siXdca3ymyae681S8/s X-Received: by 2002:a05:600c:45d1:b0:414:6ee:a37e with SMTP id s17-20020a05600c45d100b0041406eea37emr1192245wmo.19.1711105232459; Fri, 22 Mar 2024 04:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711105232; cv=none; d=google.com; s=arc-20160816; b=rn6WZZQRnOnUORwWToqzh2k5P8l90WZbUk20qJ3kJ97eDf0O+Bc7QF66GmI88Jjgfp Mv1avdjsDTWfWQ6NhlRP1Ys/OoMwRZN9rWIbPY0j1yWqs/xmOOHGSCxa+D0zbpVyaaLc 6dPlQi/HfmDVAg5rO7wzB6w7xuvVFDPllsagtIfGAZ1JLOMpAlW3rMjxLUwSc+fOqPl0 KcSzb1w7llhVu0xO/wdJhlwLcJJKeCFKdjdumPequOpqTLGoIz4KzQ3Jw3F5/lC2XMyN PaIC6Y4i/h7hE1HljROcS8T9uu1GP+tzsoohn/s3Nw76bq4Ua56cvQk3i0B8liasiVJP 43Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=xnPt4QNVgW9wb0hlrlC7gMAUy8hOgvpy4/qmpEkN3Es=; fh=0OBOeNvG1YwOz62VjCAPxJsyowuZOMIwtNTktJXXBMY=; b=O6U6YoTjCKPbKrH8753bVTuibhdxVtiKwqVyDj1SO/YiQKK4mJGx35IzUqhulf/70o E2LMbjI2+NFq2iHx66L29mATbGuXbq1yGJA4gEFwku0hQ5EUrfSqA3RvCP4buqsL25fl Y76e8Pu0hpEW4Dm9C4XIgW/VVjlY/s/ZaXIiBfRFgvwMWbl17hDTgSG+bDhlPzJaXVj7 yuQwM8ho1WlXEQeUWxux+fYsA0N1FqZOp3DuePLujdmFgkFXAdvmMI5B3SmFJ6G4YTPL ZXrqu3StAb2sFcpKQDtGA9sK7m1ugsUsR0aUwZpA0yaMPe+9CYo+8AvEwgCw21Xs2BiN NmmQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id b5-20020a05600018a500b0033d7543c3aasi930657wri.907.2024.03.22.04.00.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 04:00:32 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 04DAD881F0; Fri, 22 Mar 2024 11:58:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id D6686881C2; Fri, 22 Mar 2024 11:58:48 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id E480A881F0 for <u-boot@lists.denx.de>; Fri, 22 Mar 2024 11:58:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 82F6E1692; Fri, 22 Mar 2024 03:59:20 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 67FA83F64C; Fri, 22 Mar 2024 03:58:43 -0700 (PDT) From: Sughosh Ganu <sughosh.ganu@linaro.org> To: u-boot@lists.denx.de Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Yann GAUTIER <yann.gautier@st.com>, Etienne Carriere <etienne.carriere@foss.st.com>, Patrick DELAUNAY - foss <patrick.delaunay@foss.st.com>, Michal Simek <michal.simek@amd.com>, Masahisa Kojima <kojima.masahisa@socionext.com>, Michal Simek <monstr@monstr.eu>, Sughosh Ganu <sughosh.ganu@linaro.org> Subject: [PATCH v3 11/20] fwu: mtd: remove unused argument from function call Date: Fri, 22 Mar 2024 16:27:24 +0530 Message-Id: <20240322105733.203888-12-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240322105733.203888-1-sughosh.ganu@linaro.org> References: <20240322105733.203888-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
FWU: Add support for FWU metadata version 2
|
expand
|
diff --git a/lib/fwu_updates/fwu_mtd.c b/lib/fwu_updates/fwu_mtd.c index 69cd3d7001..d48de19009 100644 --- a/lib/fwu_updates/fwu_mtd.c +++ b/lib/fwu_updates/fwu_mtd.c @@ -107,7 +107,7 @@ __weak int fwu_plat_get_alt_num(struct udevice *dev, efi_guid_t *image_id, return fwu_mtd_get_alt_num(image_id, alt_num, "nor1"); } -static int gen_image_alt_info(char *buf, size_t len, int sidx, +static int gen_image_alt_info(char *buf, size_t len, struct fwu_image_entry *img, struct mtd_info *mtd) { char *p = buf, *end = buf + len; @@ -168,8 +168,7 @@ int fwu_gen_alt_info_from_mtd(char *buf, size_t len, struct mtd_info *mtd) } for (i = 0; i < CONFIG_FWU_NUM_IMAGES_PER_BANK; i++) { - ret = gen_image_alt_info(buf, len, i * CONFIG_FWU_NUM_BANKS, - &mdata.img_entry[i], mtd); + ret = gen_image_alt_info(buf, len, &mdata.img_entry[i], mtd); if (ret) break;
The third argument passed to the function gen_image_alt_info() is not used and is superfluous. Remove this unused argument from the function call. Fixes: 4898679e190 (FWU: Add FWU metadata access driver for MTD storage regions) Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> --- Changes since V2: * New patch lib/fwu_updates/fwu_mtd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)