From patchwork Mon Feb 27 22:08:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 1749174 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.a=rsa-sha256 header.s=google header.b=Mfeyk5/S; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PQZRf4hb4z1yXC for ; Tue, 28 Feb 2023 09:09:50 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 727E285AB1; Mon, 27 Feb 2023 23:08:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="Mfeyk5/S"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8011E85958; Mon, 27 Feb 2023 23:08:48 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (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 05ABA85A92 for ; Mon, 27 Feb 2023 23:08:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82c.google.com with SMTP id w23so8467818qtn.6 for ; Mon, 27 Feb 2023 14:08:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1677535723; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8qbK/N8hoX9FvzLX5Kiu/65OA0zosvnmAlqNd6QgWZU=; b=Mfeyk5/S3qMHipoRXZXgwvA2s7AvJSwrd7PSqStW44lw41DhfWntTr4YgIjH1YWFPP DiN+u6zzLLNBXH+eEkTdDWZWHM3B3/63e4cpIDOhRfIhGo59W0Oru30C6zySMuQk79SC or3DFd7YKHH3K4ln+PO4UPlZ9Q8k0oA94I4qw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677535723; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8qbK/N8hoX9FvzLX5Kiu/65OA0zosvnmAlqNd6QgWZU=; b=bHinWzFNWWZ4+tOS5iR+nhCr4o5ZkKaenGtK1ySxJN03igW0YqZcqHsTK1lk+m6i7Q BB26AiLeOlzMVPFmMKPqt5HsyxjzyIlP2P9NrdOj+oPaDSNg9lJYNZdsX3BnFE69wys0 mlIgxQDE6zf5WMUKxGS58jPFnfVBLNPTPYd5z7rQoSq2w/axxYCz30LECQPjB4mpBXf9 utBXENmemmBsTLM5LsObU9f0iv4rvlCMJMciKVAtnS530qjHT1kDDabm1CVjDEstuCxx OR3xKaB8fCTPMfeQlSRLyy4m0DLRnKdYelfeOHiwxl/uJKjdWCt5NzMK5Z7BRimsHqe4 Xg9A== X-Gm-Message-State: AO0yUKXrf5h/o/2ejZzvlfup0hQpGuY13LkhT0KUgzFNSWnk089Q33mK be3RRSrnH4/1SdXUcSE9xNc4HfhLqnjJBjUe4pI= X-Google-Smtp-Source: AK7set9e36zmtfav9uOkngKmY9U9TzdnWjy2ErYE+PS80rgmDcZ7ES8zaRkyefApnXhLxFGigrXM7Q== X-Received: by 2002:a05:622a:1306:b0:3bd:1835:b001 with SMTP id v6-20020a05622a130600b003bd1835b001mr1686817qtk.20.1677535723450; Mon, 27 Feb 2023 14:08:43 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id x2-20020ac86b42000000b003b635a5d56csm5375454qts.30.2023.02.27.14.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 14:08:43 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Cc: Peng Fan , Mikhail Ilin , Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" Subject: [PATCH 5/7] imx8image: Remove unused cont_img_count variable Date: Mon, 27 Feb 2023 17:08:37 -0500 Message-Id: <20230227220839.2519733-5-trini@konsulko.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227220839.2519733-1-trini@konsulko.com> References: <20230227220839.2519733-1-trini@konsulko.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean 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 Reviewed-by: Simon Glass Reviewed-by: Fabio Estevam Reviewed-by: Peng Fan --- Cc: Peng Fan Cc: Mikhail Ilin Cc: Stefano Babic Cc: Fabio Estevam Cc: "NXP i.MX U-Boot Team" --- tools/imx8image.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/imx8image.c b/tools/imx8image.c index 395d5c64bdf0..c25ea84e25c5 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;