Commit 6cadafb3 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Linus Walleij

pinctrl: remove unneeded initializer for list_for_each_entry() iterator

The iterator is initialized in list_for_each_entry().
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f652e66f
...@@ -99,7 +99,7 @@ EXPORT_SYMBOL_GPL(pinctrl_dev_get_drvdata); ...@@ -99,7 +99,7 @@ EXPORT_SYMBOL_GPL(pinctrl_dev_get_drvdata);
*/ */
struct pinctrl_dev *get_pinctrl_dev_from_devname(const char *devname) struct pinctrl_dev *get_pinctrl_dev_from_devname(const char *devname)
{ {
struct pinctrl_dev *pctldev = NULL; struct pinctrl_dev *pctldev;
if (!devname) if (!devname)
return NULL; return NULL;
...@@ -312,7 +312,7 @@ static inline int gpio_to_pin(struct pinctrl_gpio_range *range, ...@@ -312,7 +312,7 @@ static inline int gpio_to_pin(struct pinctrl_gpio_range *range,
static struct pinctrl_gpio_range * static struct pinctrl_gpio_range *
pinctrl_match_gpio_range(struct pinctrl_dev *pctldev, unsigned gpio) pinctrl_match_gpio_range(struct pinctrl_dev *pctldev, unsigned gpio)
{ {
struct pinctrl_gpio_range *range = NULL; struct pinctrl_gpio_range *range;
mutex_lock(&pctldev->mutex); mutex_lock(&pctldev->mutex);
/* Loop over the ranges */ /* Loop over the ranges */
...@@ -392,7 +392,7 @@ static int pinctrl_get_device_gpio_range(unsigned gpio, ...@@ -392,7 +392,7 @@ static int pinctrl_get_device_gpio_range(unsigned gpio,
struct pinctrl_dev **outdev, struct pinctrl_dev **outdev,
struct pinctrl_gpio_range **outrange) struct pinctrl_gpio_range **outrange)
{ {
struct pinctrl_dev *pctldev = NULL; struct pinctrl_dev *pctldev;
mutex_lock(&pinctrldev_list_mutex); mutex_lock(&pinctrldev_list_mutex);
...@@ -1679,7 +1679,7 @@ DEFINE_SHOW_ATTRIBUTE(pinctrl_groups); ...@@ -1679,7 +1679,7 @@ DEFINE_SHOW_ATTRIBUTE(pinctrl_groups);
static int pinctrl_gpioranges_show(struct seq_file *s, void *what) static int pinctrl_gpioranges_show(struct seq_file *s, void *what)
{ {
struct pinctrl_dev *pctldev = s->private; struct pinctrl_dev *pctldev = s->private;
struct pinctrl_gpio_range *range = NULL; struct pinctrl_gpio_range *range;
seq_puts(s, "GPIO ranges handled:\n"); seq_puts(s, "GPIO ranges handled:\n");
......
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