ASoC: kirkwood: Delete an error message for a failed memory allocation in kirkwood_i2s_dev_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>
This commit is contained in:
Markus Elfring 2017-08-11 09:35:33 +02:00 коммит произвёл Mark Brown
Родитель e7b2e30a3f
Коммит c7591edc2a
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -538,10 +538,9 @@ static int kirkwood_i2s_dev_probe(struct platform_device *pdev)
int err; int err;
priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
if (!priv) { if (!priv)
dev_err(&pdev->dev, "allocation failed\n");
return -ENOMEM; return -ENOMEM;
}
dev_set_drvdata(&pdev->dev, priv); dev_set_drvdata(&pdev->dev, priv);
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);