Commit 17963b54 authored by Markus Elfring's avatar Markus Elfring Committed by Lee Jones

mfd: jz4740-adc: Delete error message for a failed memory allocation

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 292155be
...@@ -212,10 +212,8 @@ static int jz4740_adc_probe(struct platform_device *pdev) ...@@ -212,10 +212,8 @@ static int jz4740_adc_probe(struct platform_device *pdev)
int irq_base; int irq_base;
adc = devm_kzalloc(&pdev->dev, sizeof(*adc), GFP_KERNEL); adc = devm_kzalloc(&pdev->dev, sizeof(*adc), GFP_KERNEL);
if (!adc) { if (!adc)
dev_err(&pdev->dev, "Failed to allocate driver structure\n");
return -ENOMEM; return -ENOMEM;
}
adc->irq = platform_get_irq(pdev, 0); adc->irq = platform_get_irq(pdev, 0);
if (adc->irq < 0) { if (adc->irq < 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment