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 spear310_pinctrl_probe

Simplify the return expression.

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20200921082448.2591929-1-liushixin2@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Liu Shixin and committed by
Linus Walleij
43b7229e da2ab12f

+1 -7
+1 -7
drivers/pinctrl/spear/pinctrl-spear310.c
··· 379 379 380 380 static int spear310_pinctrl_probe(struct platform_device *pdev) 381 381 { 382 - int ret; 383 - 384 382 spear3xx_machdata.groups = spear310_pingroups; 385 383 spear3xx_machdata.ngroups = ARRAY_SIZE(spear310_pingroups); 386 384 spear3xx_machdata.functions = spear310_functions; ··· 390 392 391 393 spear3xx_machdata.modes_supported = false; 392 394 393 - ret = spear_pinctrl_probe(pdev, &spear3xx_machdata); 394 - if (ret) 395 - return ret; 396 - 397 - return 0; 395 + return spear_pinctrl_probe(pdev, &spear3xx_machdata); 398 396 } 399 397 400 398 static struct platform_driver spear310_pinctrl_driver = {