Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F303C433F5 for ; Fri, 12 Nov 2021 19:29:34 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0482960F41 for ; Fri, 12 Nov 2021 19:29:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0482960F41 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 90C2682FEA; Fri, 12 Nov 2021 20:29:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="PeDgYOc6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D25E982F5A; Fri, 12 Nov 2021 20:29:00 +0100 (CET) Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 04C2D83039 for ; Fri, 12 Nov 2021 20:28:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x32e.google.com with SMTP id x19-20020a9d7053000000b0055c8b39420bso15387571otj.1 for ; Fri, 12 Nov 2021 11:28:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jwU0Qjnc1h8q5EmHzsbmrGnM5fsmkzb6nvBO2Zh6I0Q=; b=PeDgYOc6D3fuRCGjDkJDv3cxNxyfbEMaBRxN2pLi2x2RJniKuam5OHXcZqr40OONSx vSm/kI0bTNXW89Of9ZEMVkimGVKZOxMp9ON4JlMax+/6ZwsfXhI8vkp98sim2085Hy0l FpN09ldQjE+/J63oCmsf/rgLl7ddq1CU1EboM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jwU0Qjnc1h8q5EmHzsbmrGnM5fsmkzb6nvBO2Zh6I0Q=; b=t/LG5pj+y7zBZMq0nJT7vzJYmX+MPfR/qiCU3TjOHc+wrmvRJ1Qec3wDMdBbrPAuxo vVUU+jjPJ5j5oXHvGtcoKqm2HULfRffxyoZS9pm6QQVuFuyIEUBUjpiPHb8tVcO6aA4L CBHWSgrXSD8n/MnI0uK79Dv70Z9Q7+hECscsncEQ20OfAY1GD7VxOxeRW+WwJV6Fwnrj 7rKDDtQ41ZcmI+P/YLhfxS5lLegfCuG5rmwDrlkTt20xc8Rekmsx/sZLL6EtnBEt7vK9 VY6HR7DmVFHQx0BJJPse47hm71azU4Hr1FT8H5bA/DGfgivLEZOhMgr/je8yZHD5trf0 S8Ig== X-Gm-Message-State: AOAM531Oz3rd/kLzmcLVhe+scxY5fJUf9A5iAWK2NifGqN5n8Rz279/+ wO+EMC4ss8pXs07QtMer7wVWHpgWr/hfTg== X-Google-Smtp-Source: ABdhPJyoWFi0hnwg/PVSnfpEUxwMn/b3yj38jJd8qf5+NkrGmEPGWf74og/ueesvkH+4Uwz7XQQ9VQ== X-Received: by 2002:a05:6830:55b:: with SMTP id l27mr14273981otb.309.1636745333546; Fri, 12 Nov 2021 11:28:53 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id n20sm1283527ooe.7.2021.11.12.11.28.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Nov 2021 11:28:53 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Rob Herring , Tom Rini , Bill Mills , Simon Glass , Alexandru Gagniuc , Ming Liu , Philippe Reynes , Vagrant Cascadian Subject: [PATCH 06/16] tools: Drop unused name in image-host Date: Fri, 12 Nov 2021 12:28:07 -0700 Message-Id: <20211112192817.199075-7-sjg@chromium.org> X-Mailer: git-send-email 2.34.0.rc1.387.gb447b232ab-goog In-Reply-To: <20211112192817.199075-1-sjg@chromium.org> References: <20211112192817.199075-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean The name is created but never used. Drop it. Signed-off-by: Simon Glass --- 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