mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
pinctrl: at91: simplify probe error handling
There is no code ender the 'err' label. Just return the error code directly. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
939417bd8b
commit
11131ba435
1 changed files with 1 additions and 5 deletions
|
@ -1240,8 +1240,7 @@ static int at91_pinctrl_probe(struct platform_device *pdev)
|
|||
|
||||
if (!info->pctl) {
|
||||
dev_err(&pdev->dev, "could not register AT91 pinctrl driver\n");
|
||||
ret = -EINVAL;
|
||||
goto err;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* We will handle a range of GPIO pins */
|
||||
|
@ -1252,9 +1251,6 @@ static int at91_pinctrl_probe(struct platform_device *pdev)
|
|||
dev_info(&pdev->dev, "initialized AT91 pinctrl driver\n");
|
||||
|
||||
return 0;
|
||||
|
||||
err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int at91_pinctrl_remove(struct platform_device *pdev)
|
||||
|
|
Loading…
Reference in a new issue