[PATCH] gpiolib: remove declaration of now unused variable
Ahmad Fatoum
ahmad at a3f.at
Mon Apr 25 23:46:19 PDT 2022
Since commit f349b662674e ("gpio: allocate dynamic gpio numbers
top down"), the variable is now unused and warned about, so remove it.
Signed-off-by: Ahmad Fatoum <ahmad at a3f.at>
---
drivers/gpio/gpiolib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index c9b33bcd6c2b..10cb7b389555 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -609,7 +609,7 @@ int gpiod_get(struct device_d *dev, const char *_con_id, enum gpiod_flags flags)
int gpiochip_add(struct gpio_chip *chip)
{
- int base, i;
+ int i;
if (chip->base >= 0) {
for (i = 0; i < chip->ngpio; i++) {
--
2.34.1
More information about the barebox
mailing list