summaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra
diff options
context:
space:
mode:
authorMarcel Ziswiler2018-07-20 10:04:23 +0200
committerMark Brown2018-07-20 14:18:32 +0200
commit2ec42486358f63c4a426514c395d13f4b9de5da8 (patch)
tree4ee6ee6dc8edb4b13ca7298314641b95fab518ef /sound/soc/tegra
parentMAINTAINERS: add entry for STM32 audio drivers (diff)
downloadkernel-qcow2-linux-2ec42486358f63c4a426514c395d13f4b9de5da8.tar.gz
kernel-qcow2-linux-2ec42486358f63c4a426514c395d13f4b9de5da8.tar.xz
kernel-qcow2-linux-2ec42486358f63c4a426514c395d13f4b9de5da8.zip
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>
Diffstat (limited to 'sound/soc/tegra')
-rw-r--r--sound/soc/tegra/tegra20_ac97.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c
index affad46bf188..682ef33afb5f 100644
--- a/sound/soc/tegra/tegra20_ac97.c
+++ b/sound/soc/tegra/tegra20_ac97.c
@@ -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);