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: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by Axel Lin and committed by Mark Brown cecb66fd c555b028

-1
-1
sound/soc/codecs/wm8988.c
··· 885 ret = snd_soc_register_dai(&wm8988_dai); 886 if (ret != 0) { 887 dev_err(codec->dev, "Failed to register DAI: %d\n", ret); 888 - snd_soc_unregister_codec(codec); 889 goto err_codec; 890 } 891
··· 885 ret = snd_soc_register_dai(&wm8988_dai); 886 if (ret != 0) { 887 dev_err(codec->dev, "Failed to register DAI: %d\n", ret); 888 goto err_codec; 889 } 890