Commit 92ec46da authored by Markus Elfring's avatar Markus Elfring Committed by Mark Brown

ASoC: Medfield: Delete an error message for a failed memory allocation in snd_mfld_mc_probe()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdfSigned-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Acked-By: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 70bad123
...@@ -376,10 +376,8 @@ static int snd_mfld_mc_probe(struct platform_device *pdev) ...@@ -376,10 +376,8 @@ static int snd_mfld_mc_probe(struct platform_device *pdev)
/* audio interrupt base of SRAM location where /* audio interrupt base of SRAM location where
* interrupts are stored by System FW */ * interrupts are stored by System FW */
mc_drv_ctx = devm_kzalloc(&pdev->dev, sizeof(*mc_drv_ctx), GFP_ATOMIC); mc_drv_ctx = devm_kzalloc(&pdev->dev, sizeof(*mc_drv_ctx), GFP_ATOMIC);
if (!mc_drv_ctx) { if (!mc_drv_ctx)
pr_err("allocation failed\n");
return -ENOMEM; return -ENOMEM;
}
irq_mem = platform_get_resource_byname( irq_mem = platform_get_resource_byname(
pdev, IORESOURCE_MEM, "IRQ_BASE"); pdev, IORESOURCE_MEM, "IRQ_BASE");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment