Skip to content

Commit d1aceb8

Browse files
masahir0ylinusw
authored andcommitted
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 <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent bb379ce commit d1aceb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpiolib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ EXPORT_SYMBOL_GPL(gpiod_get_direction);
190190
*/
191191
static int gpiochip_add_to_list(struct gpio_chip *chip)
192192
{
193-
struct list_head *pos = &gpio_chips;
193+
struct list_head *pos;
194194
struct gpio_chip *_chip;
195195
int err = 0;
196196

0 commit comments

Comments
 (0)