Commit d1aceb80 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Linus Walleij

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: default avatarMasahiro Yamada <>
Signed-off-by: Linus Walleij's avatarLinus Walleij <>
parent bb379ceb
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment