diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-08-11 15:10:43 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-15 12:54:02 +0100 |
commit | 443be77e4b09d98c28196dca7132a1191ecf742b (patch) | |
tree | 2739141e46b75c4215c45ce84d6d412258a3ec4d /sound/soc/fsl/fsl_ssi.c | |
parent | 779238e28e42ff49f314df217de146b14d72c582 (diff) | |
download | linux-443be77e4b09d98c28196dca7132a1191ecf742b.tar.gz |
ASoC: Freescale: Delete an error message for a failed memory allocation in three functions
Omit an extra message for a memory allocation failure in these functions.
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/fsl/fsl_ssi.c')
-rw-r--r-- | sound/soc/fsl/fsl_ssi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 173cb8496641..64598d1183f8 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -1432,10 +1432,8 @@ static int fsl_ssi_probe(struct platform_device *pdev) ssi_private = devm_kzalloc(&pdev->dev, sizeof(*ssi_private), GFP_KERNEL); - if (!ssi_private) { - dev_err(&pdev->dev, "could not allocate DAI object\n"); + if (!ssi_private) return -ENOMEM; - } ssi_private->soc = of_id->data; ssi_private->dev = &pdev->dev; |