gpio: remove unneeded initializer in gpiochip_add_to_list()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 21 Jul 2015 05:45:40 +0000 (14:45 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 27 Jul 2015 12:40:33 +0000 (14:40 +0200)
This variable is used as an iterator and initialized in the
list_for_each() loop.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c

index 6d60ec2c9a7960e903661e7e9e00aa7f11b7330a..b7e24780683ab53ea80aa187b53a7232436b0130 100644 (file)
@@ -190,7 +190,7 @@ EXPORT_SYMBOL_GPL(gpiod_get_direction);
  */
 static int gpiochip_add_to_list(struct gpio_chip *chip)
 {
-       struct list_head *pos = &gpio_chips;
+       struct list_head *pos;
        struct gpio_chip *_chip;
        int err = 0;