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 <yamada.masahiro@socionext.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:

committed by
Linus Walleij

parent
55b6986ca1
commit
b67ecdec45
@@ -493,8 +493,6 @@ void pinmux_disable_setting(const struct pinctrl_setting *setting)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (desc->mux_setting == &(setting->data.mux)) {
|
if (desc->mux_setting == &(setting->data.mux)) {
|
||||||
desc->mux_setting = NULL;
|
|
||||||
/* And release the pin */
|
|
||||||
pin_free(pctldev, pins[i], NULL);
|
pin_free(pctldev, pins[i], NULL);
|
||||||
} else {
|
} else {
|
||||||
const char *gname;
|
const char *gname;
|
||||||
|
Reference in New Issue
Block a user