Skip to contentSkip to conversation

wm8988: remove a redundant snd_soc_unregister_codec call in wm8988_register

PATCH New Axel Lin 1 participant 1 message Jul 14, 2010

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 wm8988: remove a redundant snd_soc_unregister_codec call in wm8988_register

snd_soc_unregister_codec is called twice if snd_soc_register_dai fail.

---
 sound/soc/codecs/wm8988.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8988.c +0 -1
index 0417dae..19ad590 100644
@@ -885,7 +885,6 @@ static int wm8988_register(struct wm8988_priv *wm8988,
 	ret = snd_soc_register_dai(&wm8988_dai);
 	if (ret != 0) {
 		dev_err(codec->dev, "Failed to register DAI: %d\n", ret);
-		snd_soc_unregister_codec(codec);
 		goto err_codec;
 	}
 
Signature · 1 line
1.7.0.4