Skip to content

Commit

Permalink
ASoC: tegra: improve goto error label
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marcel Ziswiler authored and Mark Brown committed Jul 20, 2018
1 parent faa80b6 commit 2ec4248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/tegra/tegra20_ac97.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 2ec4248

Please sign in to comment.