From b67ecdec45b43a0c17a2e66e4d72303dfa3a8a96 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Fri, 5 Jan 2018 19:52:26 +0900 Subject: pinctrl: remove redundant mux_setting clear in pinmux_disable_setting() desc->mux_setting is set to NULL in pin_free() called just below. Signed-off-by: Masahiro Yamada Signed-off-by: Linus Walleij --- drivers/pinctrl/pinmux.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/pinctrl') diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index 55502fc4479c..82b18ef44ee4 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c @@ -493,8 +493,6 @@ void pinmux_disable_setting(const struct pinctrl_setting *setting) continue; } if (desc->mux_setting == &(setting->data.mux)) { - desc->mux_setting = NULL; - /* And release the pin */ pin_free(pctldev, pins[i], NULL); } else { const char *gname; -- cgit v1.2.3-58-ga151