From: Masahiro Yamada Date: Tue, 21 Jul 2015 05:45:40 +0000 (+0900) Subject: gpio: remove unneeded initializer in gpiochip_add_to_list() X-Git-Tag: firefly_0821_release~176^2~1145^2~32 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d1aceb80c685b0735268fba296523f5d7264ff22;p=firefly-linux-kernel-4.4.55.git gpio: remove unneeded initializer in gpiochip_add_to_list() This variable is used as an iterator and initialized in the list_for_each() loop. Signed-off-by: Masahiro Yamada Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 6d60ec2c9a79..b7e24780683a 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -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;