[alsa-devel] [PATCH] ASoC: imx-spdif: Remove error message upon devm_kzalloc() failure

Fabio Estevam festevam at gmail.com
Mon Dec 2 03:41:24 CET 2013

From: Fabio Estevam <fabio.estevam at freescale.com>

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 at freescale.com>
 sound/soc/fsl/imx-spdif.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sound/soc/fsl/imx-spdif.c b/sound/soc/fsl/imx-spdif.c
index 8499d52..980dd1f 100644
--- a/sound/soc/fsl/imx-spdif.c
+++ b/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);
 	if (!data) {
-		dev_err(&pdev->dev, "failed to allocate memory\n");
 		ret = -ENOMEM;
 		goto end;

More information about the Alsa-devel mailing list