浏览代码

ASoC: imx-spdif: Remove error message upon devm_kzalloc() failure

No need to have a specific OOM message, since there is generic MM out of memory
message in place.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Fabio Estevam 11 年之前
父节点
当前提交
4ded61eb3e
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      sound/soc/fsl/imx-spdif.c

+ 0 - 1
sound/soc/fsl/imx-spdif.c

@@ -35,7 +35,6 @@ static int imx_spdif_audio_probe(struct platform_device *pdev)
 
 
 	data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
 	data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
 	if (!data) {
 	if (!data) {
-		dev_err(&pdev->dev, "failed to allocate memory\n");
 		ret = -ENOMEM;
 		ret = -ENOMEM;
 		goto end;
 		goto end;
 	}
 	}