mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 22:56:42 +07:00
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 <yamada.masahiro@socionext.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
bb379ceb8d
commit
d1aceb80c6
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user