Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);