Commit a2e87fee authored by Markus Elfring's avatar Markus Elfring Committed by Lee Jones

mfd: ti_am335x_tscadc: Delete an error message for a failed memory allocation in ti_tscadc_probe()

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 8349aeb6
...@@ -169,10 +169,9 @@ static int ti_tscadc_probe(struct platform_device *pdev) ...@@ -169,10 +169,9 @@ static int ti_tscadc_probe(struct platform_device *pdev)
/* Allocate memory for device */ /* Allocate memory for device */
tscadc = devm_kzalloc(&pdev->dev, sizeof(*tscadc), GFP_KERNEL); tscadc = devm_kzalloc(&pdev->dev, sizeof(*tscadc), GFP_KERNEL);
if (!tscadc) { if (!tscadc)
dev_err(&pdev->dev, "failed to allocate memory.\n");
return -ENOMEM; return -ENOMEM;
}
tscadc->dev = &pdev->dev; tscadc->dev = &pdev->dev;
err = platform_get_irq(pdev, 0); err = platform_get_irq(pdev, 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