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

pinctrl/spear: simplify the return expression of spear300_pinctrl_probe()

Simplify the return expression.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20201210135746.1492-1-zhengyongjun3@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Zheng Yongjun and committed by
Linus Walleij
3df09cb8 a15f8596

+1 -7
+1 -7
drivers/pinctrl/spear/pinctrl-spear300.c
··· 654 654 655 655 static int spear300_pinctrl_probe(struct platform_device *pdev) 656 656 { 657 - int ret; 658 - 659 657 spear3xx_machdata.groups = spear300_pingroups; 660 658 spear3xx_machdata.ngroups = ARRAY_SIZE(spear300_pingroups); 661 659 spear3xx_machdata.functions = spear300_functions; ··· 667 669 668 670 pmx_init_addr(&spear3xx_machdata, PMX_CONFIG_REG); 669 671 670 - ret = spear_pinctrl_probe(pdev, &spear3xx_machdata); 671 - if (ret) 672 - return ret; 673 - 674 - return 0; 672 + return spear_pinctrl_probe(pdev, &spear3xx_machdata); 675 673 } 676 674 677 675 static struct platform_driver spear300_pinctrl_driver = {