[PATCH 06/16] tools: Drop unused name in image-host

Simon Glass sjg at chromium.org
Fri Nov 12 20:28:07 CET 2021


The name is created but never used. Drop it.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/image-host.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/tools/image-host.c b/tools/image-host.c
index 73d35f3eee3..e4322d323a2 100644
--- a/tools/image-host.c
+++ b/tools/image-host.c
@@ -725,7 +725,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;
@@ -736,9 +736,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);
-- 
2.34.0.rc1.387.gb447b232ab-goog



More information about the U-Boot mailing list