Skip to content

Commit 2ec4248

Browse files
ziswilerbroonie
authored andcommitted
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>
1 parent faa80b6 commit 2ec4248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/tegra/tegra20_ac97.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
377377
ret = clk_prepare_enable(ac97->clk_ac97);
378378
if (ret) {
379379
dev_err(&pdev->dev, "clk_enable failed: %d\n", ret);
380-
goto err;
380+
goto err_clk_put;
381381
}
382382

383383
ret = snd_soc_set_ac97_ops(&tegra20_ac97_ops);

0 commit comments

Comments
 (0)