diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-08-10 12:38:09 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-14 12:37:55 -0400 |
commit | b48b2710913d583ff93c365413532e1a7cd60d84 (patch) | |
tree | a5032334e3e928a64d8f4f2478621829e086c451 | |
parent | 3508cade13ba43ebafbee9064fa6114e857afd20 (diff) |
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>
-rw-r--r-- | sound/soc/rockchip/rockchip_i2s.c | 4 |
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) | |||
579 | int val; | 579 | int val; |
580 | 580 | ||
581 | i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); | 581 | i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); |
582 | if (!i2s) { | 582 | if (!i2s) |
583 | dev_err(&pdev->dev, "Can't allocate rk_i2s_dev\n"); | ||
584 | return -ENOMEM; | 583 | return -ENOMEM; |
585 | } | ||
586 | 584 | ||
587 | i2s->dev = &pdev->dev; | 585 | i2s->dev = &pdev->dev; |
588 | 586 | ||