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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Markus Elfring 2018-02-16 10:55:51 +01:00 committed by Tejun Heo
parent 27c4203a3d
commit b02b54914b
1 changed files with 1 additions and 3 deletions

View File

@ -505,10 +505,8 @@ static int __init pata_s3c_probe(struct platform_device *pdev)
cpu_type = platform_get_device_id(pdev)->driver_data;
info = devm_kzalloc(dev, sizeof(*info), GFP_KERNEL);
if (!info) {
dev_err(dev, "failed to allocate memory for device data\n");
if (!info)
return -ENOMEM;
}
info->irq = platform_get_irq(pdev, 0);