Commit 2ec42486 authored by Marcel Ziswiler's avatar Marcel Ziswiler Committed by Mark Brown

ASoC: tegra: improve goto error label

While the two error labels "err" and "err_clk_put" goto the same place
it is rather confusing that the earlier one is certainly used later
again.
Signed-off-by: default avatarMarcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent faa80b66
...@@ -377,7 +377,7 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev) ...@@ -377,7 +377,7 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
ret = clk_prepare_enable(ac97->clk_ac97); ret = clk_prepare_enable(ac97->clk_ac97);
if (ret) { if (ret) {
dev_err(&pdev->dev, "clk_enable failed: %d\n", ret); dev_err(&pdev->dev, "clk_enable failed: %d\n", ret);
goto err; goto err_clk_put;
} }
ret = snd_soc_set_ac97_ops(&tegra20_ac97_ops); ret = snd_soc_set_ac97_ops(&tegra20_ac97_ops);
......
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