Commit 287ee127 authored by Miquel Raynal's avatar Miquel Raynal Committed by Lee Jones

mfd: ti_am335x_tscadc: Get rid of useless gotos

Goto's jumping to a return statement are not really useful, drop them.
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Acked-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211015081506.933180-13-miquel.raynal@bootlin.com
parent 243e3cb9
...@@ -174,7 +174,7 @@ static int ti_tscadc_probe(struct platform_device *pdev) ...@@ -174,7 +174,7 @@ static int ti_tscadc_probe(struct platform_device *pdev)
err = platform_get_irq(pdev, 0); err = platform_get_irq(pdev, 0);
if (err < 0) if (err < 0)
goto ret; return err;
else else
tscadc->irq = err; tscadc->irq = err;
...@@ -189,8 +189,7 @@ static int ti_tscadc_probe(struct platform_device *pdev) ...@@ -189,8 +189,7 @@ static int ti_tscadc_probe(struct platform_device *pdev)
&tscadc_regmap_config); &tscadc_regmap_config);
if (IS_ERR(tscadc->regmap)) { if (IS_ERR(tscadc->regmap)) {
dev_err(&pdev->dev, "regmap init failed\n"); dev_err(&pdev->dev, "regmap init failed\n");
err = PTR_ERR(tscadc->regmap); return PTR_ERR(tscadc->regmap);
goto ret;
} }
spin_lock_init(&tscadc->reg_lock); spin_lock_init(&tscadc->reg_lock);
...@@ -274,7 +273,7 @@ static int ti_tscadc_probe(struct platform_device *pdev) ...@@ -274,7 +273,7 @@ static int ti_tscadc_probe(struct platform_device *pdev)
err_disable_clk: err_disable_clk:
pm_runtime_put_sync(&pdev->dev); pm_runtime_put_sync(&pdev->dev);
pm_runtime_disable(&pdev->dev); pm_runtime_disable(&pdev->dev);
ret:
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment