diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2022-04-26 08:46:19 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-04-29 09:10:47 +0200 |
commit | d925208bc76e6a6ab189ae79f84412600fae5bc6 (patch) | |
tree | 980bc1d9c383314ba0f19f8f85c194441ad44b8c | |
parent | eec09d7b9edc8f740c78d545d918ecd8f6efba4f (diff) | |
download | barebox-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.c | 2 |
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++) { |