Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Markus Elfring and committed by
Tejun Heo
b02b5491 27c4203a

+1 -3
+1 -3
drivers/ata/pata_samsung_cf.c
··· 505 505 cpu_type = platform_get_device_id(pdev)->driver_data; 506 506 507 507 info = devm_kzalloc(dev, sizeof(*info), GFP_KERNEL); 508 - if (!info) { 509 - dev_err(dev, "failed to allocate memory for device data\n"); 508 + if (!info) 510 509 return -ENOMEM; 511 - } 512 510 513 511 info->irq = platform_get_irq(pdev, 0); 514 512