Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ding Xiang and committed by
Linus Walleij
7e23ab72 8f3d9f35

+1 -3
+1 -3
drivers/pinctrl/nomadik/pinctrl-nomadik.c
··· 1343 1343 1344 1344 static int nmk_dt_pin_config(int index, int val, unsigned long *config) 1345 1345 { 1346 - int ret = 0; 1347 - 1348 1346 if (nmk_cfg_params[index].choice == NULL) 1349 1347 *config = nmk_cfg_params[index].config; 1350 1348 else { ··· 1352 1354 nmk_cfg_params[index].choice[val]; 1353 1355 } 1354 1356 } 1355 - return ret; 1357 + return 0; 1356 1358 } 1357 1359 1358 1360 static const char *nmk_find_pin_name(struct pinctrl_dev *pctldev, const char *pin_name)