Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1122136lqp; Fri, 22 Mar 2024 06:22:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW80GTu8irhfSrhKsomUkT5RsOjVFY00QkmLJgeYTnvLOmMtUfOywRmFqLqPHBw1YH4+lHmZRg3H8jcxNyYhtcwL2MyJOguhgIK7z60rg== X-Google-Smtp-Source: AGHT+IGXodDmjPu2NOdrpKvcyN7wJdLql9IUyPHghobBT+LdNaitwDJ1y2BmsBCHvJAKPe87PhkA X-Received: by 2002:a05:6a20:61b:b0:1a3:701c:cca9 with SMTP id 27-20020a056a20061b00b001a3701ccca9mr2313503pzl.27.1711113737937; Fri, 22 Mar 2024 06:22:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711113737; cv=pass; d=google.com; s=arc-20160816; b=EeSBxhRONvVQXEc4l8ntikceVUiwWqjJJp5qFwmIZuM4lCaXAE8GO9z7vNp44faqpS RrKSHg51WRIP7G1Ebc+TFGaagchqD3YZuhBuHcOAbu09Wy1MuOrSWlcgdpCzREd4z9TV iLANv1OKER9WAVft+pBBkE1Vxdj7cDhLnB5oYAa0UCT4hMvk7aqISKYv0KvKLQwQogl0 NgHPIs6nmbohgTP0XZHZEvitKgOez4urFPSy1+uQ1vpP6cVMZdUv+fPNUYd02oepkPyn 8xiu3uxx1bFXCugthXH9pJEyxFx1TIAShPAYLjZzAJOKcaHmVyqkIxchO2JIEH+JfinP /OUA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=MdF7fmNH+qKX+FfSp5l5aD6aoZRVZj017xr6bEXpEXQ=; fh=pIFAqwMBIsk58xRyeQgf6euhZiqAGnUMep+YBvaAbfk=; b=pgxeJWD0q9kbSaH+n24cNRzud0bHHdjl9e2TcJKiagqjayyov+W8sN19ptVt9r3Vk6 mY6AIhfWhAFGMLJa43PX64JUZryhTWjGNPz6RwvwSWE4kjte1XHwoQy31jdGC3ZjqAat 1ahyCxJcWnXjM9o9xu6dluyA9i/2g0JVNoC+jJTV6JWAN8NVJWVO4WWPQle2KQeL4k8w 0B78H4pV7wUV3X2PJmR8MrO7Sp9PTwxTVDNT0wegYkJkOH1HRJcUD0rLMWlKLtad6x+V R3OZjUD3zvLAVYF81hGmLGDT/s4RnR7HPQ/6oCEhkzTYZniSsBDfnWQ9HBxzqOff2iAD t0pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bwsf1oQf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111467-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111467-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s129-20020a632c87000000b005d8c19ca98dsi1955293pgs.137.2024.03.22.06.22.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:22:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111467-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bwsf1oQf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111467-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111467-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 823D1282758 for ; Fri, 22 Mar 2024 13:22:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5EB345C07; Fri, 22 Mar 2024 13:22:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bwsf1oQf" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE0D244C89; Fri, 22 Mar 2024 13:22:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711113730; cv=none; b=QcIJy0G+DahxS15b6TD6yZ4AtnTCyweWv0R38kFReTeOxAOIIxLbTmssKUvBVkWkp7MPgZ2jnz7R/6S1HNRSMqYCyixs4+GdlOobZq6SkOt1Jhia4frprfyYK8AkoqDOWNsNcvBQLwqu5i63xkNpKEHi9dlyYm1cEOABjM/np4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711113730; c=relaxed/simple; bh=IzPTHowQ7Q8fkZRWBVgOGiKL0cLuf17w+dMOiWBxWCE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=PHpbWMd+p9SIQaLnpNrHOZR9N/PjuUwLu4hjYulTYcVxaMRdFgBLODS/Y5N29faqRDbUTER8LIGwMgGHEGziPO2wz52XM7rPOFN9xcW0CeI2O1RHRdB1H9CDNhwLFMm8GGgQUELEig4FxZZxvDu/6+popV19N86sh0FKH0J5OIE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bwsf1oQf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A23CC433F1; Fri, 22 Mar 2024 13:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711113730; bh=IzPTHowQ7Q8fkZRWBVgOGiKL0cLuf17w+dMOiWBxWCE=; h=From:To:Cc:Subject:Date:From; b=bwsf1oQfGwbXiuRD/ayOVCS1o/ae5GOGvPWESUTJxMdacZpDXqJbT2qQ9Z1F6yntQ 20dBNe0GfWb+Tp+UO0brsa5VGl6UOj4Zk5rbQJUWsli5B1QLmGeqIDtwb6D/TtqxIf SETrReK+bCI8kYJeRvOulTvXKCfxiQNXvfbcVvydQPoS/8mAL6QeRrAt09VLO9Bgf+ 9801FH4sda4jihyWvc54W5Xzig8yIBtPHpE8UGdQRl86etjz+7HrFh3Hw6z5VxjeiA n68a9OVkXH3/gsmFA1wulYQpL0JNBA03aBsV03AJ/Bh5nV2u5h7e+TUjLpv4WspXzk gzcw9LDDW6flA== From: Arnd Bergmann To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Linus Walleij Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: armada-37xx: remove an unused variable Date: Fri, 22 Mar 2024 14:21:43 +0100 Message-Id: <20240322132205.906729-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann This variable has never been used and can be removed to avoid a W=1 warning: drivers/pinctrl/mvebu/pinctrl-armada-37xx.c:837:6: error: variable 'i' set but not used [-Werror,-Wunused-but-set-variable] 837 | int i = 0; Fixes: 87466ccd9401 ("pinctrl: armada-37xx: Add pin controller support for Armada 37xx") Signed-off-by: Arnd Bergmann --- drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index c34719b7506d..4c4ada06423d 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -834,8 +834,6 @@ static int armada_37xx_gpiochip_register(struct platform_device *pdev, static int armada_37xx_add_function(struct armada_37xx_pmx_func *funcs, int *funcsize, const char *name) { - int i = 0; - if (*funcsize <= 0) return -EOVERFLOW; @@ -847,7 +845,6 @@ static int armada_37xx_add_function(struct armada_37xx_pmx_func *funcs, return -EEXIST; } funcs++; - i++; } /* append new unique function */ -- 2.39.2