projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7b2e30
)
ASoC: kirkwood: Delete an error message for a failed memory allocation in kirkwood_i2...
author
Markus Elfring
<elfring@users.sourceforge.net>
Fri, 11 Aug 2017 07:35:33 +0000
(09:35 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 14 Aug 2017 16:37:20 +0000
(17:37 +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>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/kirkwood/kirkwood-i2s.c
patch
|
blob
|
history
diff --git
a/sound/soc/kirkwood/kirkwood-i2s.c
b/sound/soc/kirkwood/kirkwood-i2s.c
index 3b09f71b953514cc4e6cce3eebc77336bd24197e..105a73cc5158519da5f62e256c4a72c1e5d40c49 100644
(file)
--- a/
sound/soc/kirkwood/kirkwood-i2s.c
+++ b/
sound/soc/kirkwood/kirkwood-i2s.c
@@
-538,10
+538,9
@@
static int kirkwood_i2s_dev_probe(struct platform_device *pdev)
int err;
priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
- if (!priv) {
- dev_err(&pdev->dev, "allocation failed\n");
+ if (!priv)
return -ENOMEM;
- }
+
dev_set_drvdata(&pdev->dev, priv);
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);