diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-08-10 18:18:20 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-14 17:37:44 +0100 |
commit | dd80627d0688709a77233787a9c9d7e1f8e419ac (patch) | |
tree | 5f6ad8f36d4eb51e2d08b1007cc403030150f696 /sound/soc | |
parent | 4b2983da22d30c53d778b2e5035dc347dc4b0037 (diff) | |
download | op-kernel-dev-dd80627d0688709a77233787a9c9d7e1f8e419ac.zip op-kernel-dev-dd80627d0688709a77233787a9c9d7e1f8e419ac.tar.gz |
ASoC: fsi: Delete an error message for a failed memory allocation in fsi_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')
-rw-r--r-- | sound/soc/sh/fsi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index 005b215..1f41cf1 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c @@ -1962,10 +1962,8 @@ static int fsi_probe(struct platform_device *pdev) } master = devm_kzalloc(&pdev->dev, sizeof(*master), GFP_KERNEL); - if (!master) { - dev_err(&pdev->dev, "Could not allocate master\n"); + if (!master) return -ENOMEM; - } master->base = devm_ioremap_nocache(&pdev->dev, res->start, resource_size(res)); |