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: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Marcel Ziswiler 2018-07-20 10:04:23 +02:00 committed by Mark Brown
parent faa80b66c7
commit 2ec4248635
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -377,7 +377,7 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
ret = clk_prepare_enable(ac97->clk_ac97);
if (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);