Skip to content

Commit

Permalink
gpio: remove unneeded initializer in gpiochip_add_to_list()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masahiro Yamada authored and Linus Walleij committed Jul 27, 2015
1 parent bb379ce commit d1aceb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpiolib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d1aceb8

Please sign in to comment.