Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d99c8053 authored by Laurent Meunier's avatar Laurent Meunier Committed by Linus Walleij
Browse files

pinctrl: pinconf: remove needless loop



This removes a needless loop which was caught in pinconf.c.

Suggested-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarLaurent Meunier <laurent.meunier@st.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 241297c2
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -411,7 +411,7 @@ static int pinconf_dbg_config_print(struct seq_file *s, void *d)
	const struct pinctrl_map *found = NULL;
	struct pinctrl_dev *pctldev;
	struct dbg_cfg *dbg = &pinconf_dbg_conf;
	int i, j;
	int i;

	mutex_lock(&pinctrl_maps_mutex);

@@ -424,15 +424,12 @@ static int pinconf_dbg_config_print(struct seq_file *s, void *d)
		if (strcmp(map->name, dbg->state_name))
			continue;

		for (j = 0; j < map->data.configs.num_configs; j++) {
			if (!strcmp(map->data.configs.group_or_pin,
					dbg->pin_name)) {
				/* We found the right pin / state */
		if (!strcmp(map->data.configs.group_or_pin, dbg->pin_name)) {
			/* We found the right pin */
			found = map;
			break;
		}
	}
	}

	if (!found) {
		seq_printf(s, "No config found for dev/state/pin, expected:\n");