Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cecb66fd authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

ASoC:: remove a redundant snd_soc_unregister_codec call in wm8988_register



snd_soc_unregister_codec is called twice if snd_soc_register_dai fail.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent c555b028
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -885,7 +885,6 @@ static int wm8988_register(struct wm8988_priv *wm8988,
	ret = snd_soc_register_dai(&wm8988_dai);
	ret = snd_soc_register_dai(&wm8988_dai);
	if (ret != 0) {
	if (ret != 0) {
		dev_err(codec->dev, "Failed to register DAI: %d\n", ret);
		dev_err(codec->dev, "Failed to register DAI: %d\n", ret);
		snd_soc_unregister_codec(codec);
		goto err_codec;
		goto err_codec;
	}
	}