[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1585554986-26521-1-git-send-email-dingxiang@cmss.chinamobile.com>
Date: Mon, 30 Mar 2020 15:56:26 +0800
From: Ding Xiang <dingxiang@...s.chinamobile.com>
To: linus.walleij@...aro.org
Cc: linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] pinctrl: nomadik:remove unneeded variable
ret is unneeded, just return 0.
Signed-off-by: Ding Xiang <dingxiang@...s.chinamobile.com>
---
drivers/pinctrl/nomadik/pinctrl-nomadik.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c
index 95f864d..4c56483 100644
--- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c
+++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c
@@ -1340,8 +1340,6 @@ struct nmk_cfg_param {
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 {
@@ -1351,7 +1349,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)
--
1.9.1
Powered by blists - more mailing lists