[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221024131527.2156810-1-colin.i.king@gmail.com>
Date: Mon, 24 Oct 2022 14:15:27 +0100
From: Colin Ian King <colin.i.king@...il.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Alim Akhtar <alim.akhtar@...sung.com>,
Tomasz Figa <tomasz.figa@...il.com>,
Sylwester Nawrocki <s.nawrocki@...sung.com>,
Linus Walleij <linus.walleij@...aro.org>,
linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org, linux-gpio@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] pinctrl: samsung: remove variable pin
Variable pin is just being incremented and it's never used
anywhere else. The variable and the increment are redundant so
remove it.
Signed-off-by: Colin Ian King <colin.i.king@...il.com>
---
drivers/pinctrl/samsung/pinctrl-s3c24xx.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/pinctrl/samsung/pinctrl-s3c24xx.c b/drivers/pinctrl/samsung/pinctrl-s3c24xx.c
index 625cb1065eaf..78b7bd133566 100644
--- a/drivers/pinctrl/samsung/pinctrl-s3c24xx.c
+++ b/drivers/pinctrl/samsung/pinctrl-s3c24xx.c
@@ -509,7 +509,6 @@ static int s3c24xx_eint_init(struct samsung_pinctrl_drv_data *d)
struct s3c24xx_eint_domain_data *ddata;
unsigned int mask;
unsigned int irq;
- unsigned int pin;
if (bank->eint_type != EINT_TYPE_WKUP)
continue;
@@ -534,7 +533,7 @@ static int s3c24xx_eint_init(struct samsung_pinctrl_drv_data *d)
irq = bank->eint_offset;
mask = bank->eint_mask;
- for (pin = 0; mask; ++pin, mask >>= 1) {
+ for (; mask; mask >>= 1) {
if (irq >= NUM_EINT)
break;
if (!(mask & 1))
--
2.37.3
Powered by blists - more mailing lists