From: Arnd Bergmann Date: Tue, 30 May 2017 09:21:05 +0000 (+0200) Subject: gpiolib: remove unused variable X-Git-Tag: v4.13-rc1~116^2~31 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=073570dcb5687f6dd0bbc541f68c03c08a57ec58;p=karo-tx-linux.git gpiolib: remove unused variable This was left behind by a cleanup patch: drivers/gpio/gpiolib.c: In function 'gpiochip_irqchip_init_valid_mask': drivers/gpio/gpiolib.c:1474:6: error: unused variable 'i' [-Werror=unused-variable] Fixes: 923a654c186c ("gpiolib: Re-use bitmap_fill() instead of open coded loop") Reported-by: kbuild test robot Reported-by: Stephen Rothwell Reported-by: Colin King Signed-off-by: Arnd Bergmann Reviewed-by: Andy Shevchenko Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index be8097097326..62ffb4e293d2 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1471,8 +1471,6 @@ static struct gpio_chip *find_chip_by_name(const char *name) static int gpiochip_irqchip_init_valid_mask(struct gpio_chip *gpiochip) { - int i; - if (!gpiochip->irq_need_valid_mask) return 0;