ASoC: DaVinci: Delete an error message for a failed memory allocation in two functions
Subsystems (3)
PATCH 1/1 ASoC: DaVinci: Delete an error message for a failed memory allocation in two functions
From: Markus Elfring <[email protected]>
Date: Fri, 11 Aug 2017 16:51:46 +0200
Omit an extra message for a memory allocation failure in these functions.
This issue was detected by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
--- sound/soc/davinci/davinci-mcasp.c | 2 -- sound/soc/davinci/davinci-vcif.c | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-)
sound/soc/davinci/davinci-mcasp.c +0 -2
@@ -1604,6 +1604,4 @@ static struct davinci_mcasp_pdata *davinci_mcasp_set_pdata_from_of(if (!pdata) { -dev_err (&pdev->dev, -"Failed to allocate memory for pdata\n" ); ret = -ENOMEM ;return pdata; }
sound/soc/davinci/davinci-vcif.c +1 -4
@@ -213,8 +213,5 @@ static int davinci_vcif_probe(struct platform_device *pdev) -if (!davinci_vcif_dev) { -dev_dbg (&pdev->dev, -"could not allocate memory for private data\n" ); +if (!davinci_vcif_dev)return -ENOMEM ; - }/* DMA tx params */ davinci_vcif_dev->davinci_vc = davinci_vc;
Signature · 1 line
2.14.0