]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: Drop unused name in image-host
authorSimon Glass <sjg@chromium.org>
Fri, 12 Nov 2021 19:28:07 +0000 (12:28 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 26 Jan 2022 15:50:43 +0000 (08:50 -0700)
The name is created but never used. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/image-host.c

index a5d47a4f99722c18fafc7c72c050c259f5c26a77..f13a94413646f2ffee4c7100ec1d8fb9f476c7cd 100644 (file)
@@ -729,7 +729,7 @@ static int fit_config_add_hash(const void *fit, int image_noffset,
                               struct strlist *node_inc, const char *conf_name,
                               const char *sig_name, const char *iname)
 {
-       char name[200], path[200];
+       char path[200];
        int noffset;
        int hash_count;
        int ret;
@@ -740,9 +740,6 @@ static int fit_config_add_hash(const void *fit, int image_noffset,
        if (strlist_add(node_inc, path))
                goto err_mem;
 
-       snprintf(name, sizeof(name), "%s/%s", FIT_CONFS_PATH,
-                conf_name);
-
        /* Add all this image's hashes */
        hash_count = 0;
        for (noffset = fdt_first_subnode(fit, image_noffset);