Commit 091e81b8 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Walleij

pinctrl: pinmux: Drop duplicate error message in pinmux_select()

pinctrl_get_group_selector() prints an error message when group
is not found in the list. No need to repeat this in the caller.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230109132719.86009-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8bb58111
...@@ -744,10 +744,8 @@ static ssize_t pinmux_select(struct file *file, const char __user *user_buf, ...@@ -744,10 +744,8 @@ static ssize_t pinmux_select(struct file *file, const char __user *user_buf,
} }
ret = pinctrl_get_group_selector(pctldev, gname); ret = pinctrl_get_group_selector(pctldev, gname);
if (ret < 0) { if (ret < 0)
dev_err(pctldev->dev, "failed to get group selector for %s", gname);
goto exit_free_buf; goto exit_free_buf;
}
gsel = ret; gsel = ret;
ret = pmxops->set_mux(pctldev, fsel, gsel); ret = pmxops->set_mux(pctldev, fsel, gsel);
......
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