Commit 7e23ab72 authored by Ding Xiang's avatar Ding Xiang Committed by Linus Walleij

pinctrl: nomadik:remove unneeded variable

ret is unneeded, just return 0.
Signed-off-by: default avatarDing Xiang <dingxiang@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/1585554986-26521-1-git-send-email-dingxiang@cmss.chinamobile.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8f3d9f35
...@@ -1343,8 +1343,6 @@ static const struct nmk_cfg_param nmk_cfg_params[] = { ...@@ -1343,8 +1343,6 @@ static const struct nmk_cfg_param nmk_cfg_params[] = {
static int nmk_dt_pin_config(int index, int val, unsigned long *config) static int nmk_dt_pin_config(int index, int val, unsigned long *config)
{ {
int ret = 0;
if (nmk_cfg_params[index].choice == NULL) if (nmk_cfg_params[index].choice == NULL)
*config = nmk_cfg_params[index].config; *config = nmk_cfg_params[index].config;
else { else {
...@@ -1354,7 +1352,7 @@ static int nmk_dt_pin_config(int index, int val, unsigned long *config) ...@@ -1354,7 +1352,7 @@ static int nmk_dt_pin_config(int index, int val, unsigned long *config)
nmk_cfg_params[index].choice[val]; nmk_cfg_params[index].choice[val];
} }
} }
return ret; return 0;
} }
static const char *nmk_find_pin_name(struct pinctrl_dev *pctldev, const char *pin_name) static const char *nmk_find_pin_name(struct pinctrl_dev *pctldev, const char *pin_name)
......
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