summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-07-21 14:45:40 +0900
committerLinus Walleij <linus.walleij@linaro.org>2015-07-27 14:40:33 +0200
commitd1aceb80c685b0735268fba296523f5d7264ff22 (patch)
treedd683ed466fa80bcf6bbe14bab8645b9af0a735b /drivers/gpio
parentbb379ceb8d9f3599ab9162ebf58d731350f4177a (diff)
downloadlinux-d1aceb80c685b0735268fba296523f5d7264ff22.tar.bz2
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
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;