[alsa-devel] [PATCH 2/5] ASoC: mc13783: Use core error messages if registration fails

Alexander Shiyan shc_work at mail.ru
Sun Jan 5 08:38:32 CET 2014


Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
 sound/soc/codecs/mc13783.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c
index 8ab9668..c2def5d 100644
--- a/sound/soc/codecs/mc13783.c
+++ b/sound/soc/codecs/mc13783.c
@@ -781,14 +781,6 @@ static int __init mc13783_codec_probe(struct platform_device *pdev)
 		ret = snd_soc_register_codec(&pdev->dev, &soc_codec_dev_mc13783,
 			mc13783_dai_async, ARRAY_SIZE(mc13783_dai_async));
 
-	if (ret)
-		goto err_register_codec;
-
-	return 0;
-
-err_register_codec:
-	dev_err(&pdev->dev, "register codec failed with %d\n", ret);
-
 	return ret;
 }
 
-- 
1.8.3.2



More information about the Alsa-devel mailing list