ASoC: Freescale: Delete an error message for a failed memory allocation in three functions
Subsystems (4)
PATCH 1/1 ASoC: Freescale: Delete an error message for a failed memory allocation in three functions
Quoted 1 line
From
885ccd6c63291dcd4854a0cbaab5188cdc3db805Mon Sep 17 00:00:00 2001
From: Markus Elfring <[email protected]>
Date: Fri, 11 Aug 2017 15:10:43 +0200
Subject: [PATCH] ASoC: Freescale: Delete an error message for a failed memory allocation in three functions
Omit an extra message for a memory allocation failure in these functions.
This issue was detected by using the Coccinelle software.
--- sound/soc/fsl/fsl_asrc_dma.c | 4 +--- sound/soc/fsl/fsl_dma.c | 1 - sound/soc/fsl/fsl_ssi.c | 4 +--- 3 files changed, 2 insertions(+), 7 deletions(-)
sound/soc/fsl/fsl_asrc_dma.c +1 -3
@@ -282,7 +282,5 @@ static int fsl_asrc_dma_startup(struct snd_pcm_substream *substream) -if (!pair) { -dev_err (dev,"failed to allocate pair\n" ); +if (!pair)return -ENOMEM ; - } pair->asrc_priv = asrc_priv;
sound/soc/fsl/fsl_dma.c +0 -1
@@ -907,5 +907,4 @@ static int fsl_soc_dma_probe(struct platform_device *pdev)if (!dma) { -dev_err (&pdev->dev,"could not allocate dma object\n" );of_node_put (ssi_np);return -ENOMEM ; }
sound/soc/fsl/fsl_ssi.c +1 -3
@@ -1435,7 +1435,5 @@ static int fsl_ssi_probe(struct platform_device *pdev) -if (!ssi_private) { -dev_err (&pdev->dev,"could not allocate DAI object\n" ); +if (!ssi_private)return -ENOMEM ; - } ssi_private->soc = of_id->data; ssi_private->dev = &pdev->dev;
Signature · 1 line
2.14.0
Quoted 10 lines · SF Markus Elfring
From
885ccd6c63291dcd4854a0cbaab5188cdc3db805Mon Sep 17 00:00:00 2001
From: Markus Elfring <[email protected]>
Date: Fri, 11 Aug 2017 15:10:43 +0200
Subject: [PATCH] ASoC: Freescale: Delete an error message for a failed memory allocation in three functionsOmit an extra message for a memory allocation failure in these functions.
This issue was detected by using the Coccinelle software.
This doesn't have anything to do with refactoring strings.
Just note that allocations without GFP_NOWARN do a dump_stack()
sound/soc/fsl/fsl_asrc_dma.c
Quoted 1 line
sound/soc/fsl/fsl_asrc_dma.c +0
-0
[]
sound/soc/fsl/fsl_asrc_dma.c static int fsl_asrc_dma_startup(struct snd_pcm_substream *substream) · line 285
Quoted 6 lines
sound/soc/fsl/fsl_asrc_dma.c +1
-3@@ -282,7 +282,5 @@ static int fsl_asrc_dma_startup(struct snd_pcm_substream *substream) -if (!pair) { -dev_err (dev,"failed to allocate pair\n" ); +if (!pair)return -ENOMEM ; - }
Use normal diff output that shows 3 lines of context above and below the patched lines.