diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-08-11 16:51:46 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-14 17:40:13 +0100 |
commit | dc09233908cf47339f5000dc54574685e917af77 (patch) | |
tree | 818929b882b5979e262a5c3ae63902aba13c6a42 /sound/soc/davinci/davinci-mcasp.c | |
parent | 5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff) | |
download | op-kernel-dev-dc09233908cf47339f5000dc54574685e917af77.zip op-kernel-dev-dc09233908cf47339f5000dc54574685e917af77.tar.gz |
ASoC: DaVinci: Delete an error message for a failed memory allocation in two 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/davinci/davinci-mcasp.c')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 56ec1d3..d486908 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c @@ -1602,8 +1602,6 @@ static struct davinci_mcasp_pdata *davinci_mcasp_set_pdata_from_of( pdata = devm_kmemdup(&pdev->dev, match->data, sizeof(*pdata), GFP_KERNEL); if (!pdata) { - dev_err(&pdev->dev, - "Failed to allocate memory for pdata\n"); ret = -ENOMEM; return pdata; } |