All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: tegra: improve goto error label
@ 2018-07-20  8:04 ` Marcel Ziswiler
  0 siblings, 0 replies; 22+ messages in thread
From: Marcel Ziswiler @ 2018-07-20  8:04 UTC (permalink / raw)
  To: alsa-devel, linux-tegra
  Cc: Liam Girdwood, Marcel Ziswiler, Takashi Iwai, linux-kernel,
	Jonathan Hunter, Mark Brown, Thierry Reding

From: Marcel Ziswiler <marcel.ziswiler@toradex.com>

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>

---

 sound/soc/tegra/tegra20_ac97.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.14.4

^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-07-26  8:34 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-20  8:04 [PATCH 1/2] ASoC: tegra: improve goto error label Marcel Ziswiler
2018-07-20  8:04 ` Marcel Ziswiler
2018-07-20  8:04 ` [PATCH 2/2] ASoC: tegra: probe deferral error reporting Marcel Ziswiler
2018-07-20  8:04   ` Marcel Ziswiler
2018-07-20 12:16   ` Mark Brown
2018-07-20 12:16     ` Mark Brown
2018-07-20 12:31     ` Marcel Ziswiler
2018-07-21  9:56       ` Mark Brown
2018-07-21  9:56         ` Mark Brown
2018-07-21 10:06         ` Marcel Ziswiler
2018-07-21 10:06           ` Marcel Ziswiler
2018-07-23 10:25           ` Mark Brown
2018-07-23 10:25             ` Mark Brown
2018-07-21 11:17         ` Dmitry Osipenko
2018-07-21 11:55           ` Marcel Ziswiler
2018-07-21 11:55             ` Marcel Ziswiler
2018-07-21 12:03             ` Dmitry Osipenko
2018-07-21 12:15               ` Dmitry Osipenko
2018-07-26  8:34   ` Stefan Agner
2018-07-20 12:19 ` Applied "ASoC: tegra: improve goto error label" to the asoc tree Mark Brown
2018-07-20 12:19   ` Mark Brown
2018-07-20 12:19   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.