Skip to contentSkip to conversation

gpio: ep93xx: remove unused variable

PATCH Applied Arnd Bergmann 2 participants 2 messages Jan 27, 2023 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: ep93xx: remove unused variable

From: Arnd Bergmann <[email protected]>

This one was left behind by a previous cleanup patch:

drivers/gpio/gpio-ep93xx.c: In function 'ep93xx_gpio_add_bank':
drivers/gpio/gpio-ep93xx.c:366:34: error: unused variable 'ic' [-Werror=unused-variable]

Fixes 216f37366e86 ("gpio: ep93xx: Make irqchip immutable")
---
 drivers/gpio/gpio-ep93xx.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpio/gpio-ep93xx.c +0 -2
index 192be99b1392..6cedf46efec6 100644
@@ -363,8 +363,6 @@ static int ep93xx_gpio_add_bank(struct ep93xx_gpio_chip *egc,
 
 	girq = &gc->irq;
 	if (bank->has_irq || bank->has_hierarchical_irq) {
-		struct irq_chip *ic;
-
 		gc->set_config = ep93xx_gpio_set_config;
 		egc->eic = devm_kcalloc(dev, 1,
 					sizeof(*egc->eic),
Signature · 1 line
2.39.0
#1 lore raw
Quoted 28 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

This one was left behind by a previous cleanup patch:

drivers/gpio/gpio-ep93xx.c: In function 'ep93xx_gpio_add_bank':
drivers/gpio/gpio-ep93xx.c:366:34: error: unused variable 'ic' [-Werror=unused-variable]

Fixes 216f37366e86 ("gpio: ep93xx: Make irqchip immutable")
---
 drivers/gpio/gpio-ep93xx.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpio/gpio-ep93xx.c +0 -3
index 192be99b1392..6cedf46efec6 100644
@@ -363,8 +363,6 @@ static int ep93xx_gpio_add_bank(struct ep93xx_gpio_chip *egc,
 
        girq = &gc->irq;
        if (bank->has_irq || bank->has_hierarchical_irq) {
-               struct irq_chip *ic;
-
                gc->set_config = ep93xx_gpio_set_config;
                egc->eic = devm_kcalloc(dev, 1,
                                        sizeof(*egc->eic),
--
Quoted 2 lines

2.39.0

Applied, thanks!

Bart