diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-08-11 12:25:41 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-16 15:00:55 +0300 |
commit | 92ec46da6e35f5f7ff39741517a9466c82d1afb9 (patch) | |
tree | 9260d193b591da52145901cb45eb4d596df11075 /sound/soc/intel | |
parent | 70bad123ea5bec47329bc8681cbb8e8431188ba2 (diff) | |
download | linux-92ec46da6e35f5f7ff39741517a9466c82d1afb9.tar.xz |
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.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r-- | sound/soc/intel/boards/mfld_machine.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/intel/boards/mfld_machine.c b/sound/soc/intel/boards/mfld_machine.c index 4e08885f37aa..6f44acfb4aae 100644 --- a/sound/soc/intel/boards/mfld_machine.c +++ b/sound/soc/intel/boards/mfld_machine.c @@ -376,10 +376,8 @@ static int snd_mfld_mc_probe(struct platform_device *pdev) /* audio interrupt base of SRAM location where * interrupts are stored by System FW */ mc_drv_ctx = devm_kzalloc(&pdev->dev, sizeof(*mc_drv_ctx), GFP_ATOMIC); - if (!mc_drv_ctx) { - pr_err("allocation failed\n"); + if (!mc_drv_ctx) return -ENOMEM; - } irq_mem = platform_get_resource_byname( pdev, IORESOURCE_MEM, "IRQ_BASE"); |