summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-02-27 17:08:37 -0500
committerTom Rini <trini@konsulko.com>2023-03-22 15:22:48 -0400
commita6b8dd8a12bc983ff48ebca2b63cf95baf4dfd74 (patch)
tree362eaf3167d60a426b760cb7a048d4df49846732
parent99de38a1092b584da438970a3b636cc3178b3637 (diff)
downloadu-boot-a6b8dd8a12bc983ff48ebca2b63cf95baf4dfd74.tar.gz
u-boot-a6b8dd8a12bc983ff48ebca2b63cf95baf4dfd74.tar.bz2
u-boot-a6b8dd8a12bc983ff48ebca2b63cf95baf4dfd74.zip
imx8image: Remove unused cont_img_count variable
With clang-15, it is now reported that cont_img_count is unused. This is true as the code will increment / reset this counter, but never functionally use it. Remove it. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Fabio Estevam <festevam@denx.de> Reviewed-by: Peng Fan <peng.fan@nxp.com>
-rw-r--r--tools/imx8image.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/imx8image.c b/tools/imx8image.c
index 395d5c64bd..c25ea84e25 100644
--- a/tools/imx8image.c
+++ b/tools/imx8image.c
@@ -829,7 +829,6 @@ static int build_container(soc_type_t soc, uint32_t sector_size,
int ret;
int container = -1;
- int cont_img_count = 0; /* indexes to arrange the container */
memset((char *)&imx_header, 0, sizeof(imx_header_v3_t));
@@ -879,7 +878,6 @@ static int build_container(soc_type_t soc, uint32_t sector_size,
img_sp->src = file_off;
file_off += ALIGN(sbuf.st_size, sector_size);
- cont_img_count++;
break;
case SECO:
@@ -899,7 +897,6 @@ static int build_container(soc_type_t soc, uint32_t sector_size,
img_sp->src = file_off;
file_off += sbuf.st_size;
- cont_img_count++;
break;
case NEW_CONTAINER:
@@ -908,8 +905,6 @@ static int build_container(soc_type_t soc, uint32_t sector_size,
CONTAINER_ALIGNMENT,
CONTAINER_FLAGS_DEFAULT,
fuse_version);
- /* reset img count when moving to new container */
- cont_img_count = 0;
scfw_flags = 0;
break;