aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2024-03-22 16:27:24 +0530
committerTom Rini <trini@konsulko.com>2024-05-24 13:40:04 -0600
commit840afae16f10a6f440b70488fdbf7ab59bf5686d (patch)
treebab0046b570c70abcabdd121731b1fa1d2d15478
parent222cd230e1644b8d327f921b820964e74ba0f1a4 (diff)
downloadu-boot-840afae16f10a6f440b70488fdbf7ab59bf5686d.zip
u-boot-840afae16f10a6f440b70488fdbf7ab59bf5686d.tar.gz
u-boot-840afae16f10a6f440b70488fdbf7ab59bf5686d.tar.bz2
fwu: mtd: remove unused argument from function call
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> Tested-by: Michal Simek <michal.simek@amd.com>
-rw-r--r--lib/fwu_updates/fwu_mtd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/fwu_updates/fwu_mtd.c b/lib/fwu_updates/fwu_mtd.c
index 69cd3d7..d48de19 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;