aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/rockchip
diff options
context:
space:
mode:
authorGravatar Markus Elfring <elfring@users.sourceforge.net> 2017-08-10 18:38:09 +0200
committerGravatar Mark Brown <broonie@kernel.org> 2017-08-14 17:37:55 +0100
commitb48b2710913d583ff93c365413532e1a7cd60d84 (patch)
treea5032334e3e928a64d8f4f2478621829e086c451 /sound/soc/rockchip
parentASoC: rockchip: add bindings for i2s (diff)
downloadlinux-b48b2710913d583ff93c365413532e1a7cd60d84.tar.gz
linux-b48b2710913d583ff93c365413532e1a7cd60d84.tar.bz2
linux-b48b2710913d583ff93c365413532e1a7cd60d84.zip
ASoC: rockchip: Delete an error message for a failed memory allocation in rockchip_i2s_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> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/rockchip')
-rw-r--r--sound/soc/rockchip/rockchip_i2s.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c
index 199338fdeda0..b6590467fd14 100644
--- a/sound/soc/rockchip/rockchip_i2s.c
+++ b/sound/soc/rockchip/rockchip_i2s.c
@@ -579,10 +579,8 @@ static int rockchip_i2s_probe(struct platform_device *pdev)
int val;
i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL);
- if (!i2s) {
- dev_err(&pdev->dev, "Can't allocate rk_i2s_dev\n");
+ if (!i2s)
return -ENOMEM;
- }
i2s->dev = &pdev->dev;