From: Marcel Ziswiler Date: Fri, 20 Jul 2018 08:04:23 +0000 (+0200) Subject: ASoC: tegra: improve goto error label X-Git-Tag: v4.19~92^2~2^2~137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ec42486358f63c4a426514c395d13f4b9de5da8;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c index affad46..682ef33a 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);