提交 b02b5491 编写于 作者: M Markus Elfring 提交者: 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: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册