summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2022-04-26 08:46:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-04-29 09:10:47 +0200
commitd925208bc76e6a6ab189ae79f84412600fae5bc6 (patch)
tree980bc1d9c383314ba0f19f8f85c194441ad44b8c
parenteec09d7b9edc8f740c78d545d918ecd8f6efba4f (diff)
downloadbarebox-d925208bc76e6a6ab189ae79f84412600fae5bc6.tar.gz
barebox-d925208bc76e6a6ab189ae79f84412600fae5bc6.tar.xz
gpiolib: remove declaration of now unused variable
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@a3f.at> Link: https://lore.barebox.org/20220426064619.422478-1-ahmad@a3f.at Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index c9b33bcd6c..10cb7b3895 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++) {