pinctrl: nomadik:remove unneeded variable
ret is unneeded, just return 0. Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com> Link: https://lore.kernel.org/r/1585554986-26521-1-git-send-email-dingxiang@cmss.chinamobile.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
8f3d9f3542
commit
7e23ab72e7
|
@ -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)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
if (nmk_cfg_params[index].choice == NULL)
|
||||
*config = nmk_cfg_params[index].config;
|
||||
else {
|
||||
|
@ -1354,7 +1352,7 @@ static int nmk_dt_pin_config(int index, int val, unsigned long *config)
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user