projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70bad12
)
ASoC: Medfield: Delete an error message for a failed memory allocation in snd_mfld_mc...
author
Markus Elfring
<elfring@users.sourceforge.net>
Fri, 11 Aug 2017 09:25:41 +0000
(11:25 +0200)
committer
Mark Brown
<broonie@kernel.org>
Wed, 16 Aug 2017 12:00:55 +0000
(13:00 +0100)
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>
sound/soc/intel/boards/mfld_machine.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/boards/mfld_machine.c
b/sound/soc/intel/boards/mfld_machine.c
index
4e08885
..
6f44acf
100644
(file)
--- 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");