Merge tag 'gpio-updates-for-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-rpi.git] / drivers / gpio / gpiolib-of.c
index 7e5e51d..b7ac07f 100644 (file)
@@ -712,9 +712,8 @@ static void of_gpiochip_remove_hog(struct gpio_chip *chip,
                                   struct device_node *hog)
 {
        struct gpio_desc *desc;
-       unsigned int i;
 
-       for_each_gpio_desc_with_flag(i, chip, desc, FLAG_IS_HOGGED)
+       for_each_gpio_desc_with_flag(chip, desc, FLAG_IS_HOGGED)
                if (desc->hog == hog)
                        gpiochip_free_own_desc(desc);
 }