Commit b02b5491 authored by Markus Elfring's avatar Markus Elfring Committed by Tejun Heo

pata_samsung_cf: Delete an error message for a failed memory allocation in pata_s3c_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 avatarTejun Heo <tj@kernel.org>
parent 27c4203a
...@@ -505,10 +505,8 @@ static int __init pata_s3c_probe(struct platform_device *pdev) ...@@ -505,10 +505,8 @@ static int __init pata_s3c_probe(struct platform_device *pdev)
cpu_type = platform_get_device_id(pdev)->driver_data; cpu_type = platform_get_device_id(pdev)->driver_data;
info = devm_kzalloc(dev, sizeof(*info), GFP_KERNEL); info = devm_kzalloc(dev, sizeof(*info), GFP_KERNEL);
if (!info) { if (!info)
dev_err(dev, "failed to allocate memory for device data\n");
return -ENOMEM; return -ENOMEM;
}
info->irq = platform_get_irq(pdev, 0); info->irq = 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