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

Configure Feed

Select the types of activity you want to include in your feed.

pata_arasan_cf: Delete an error message for a failed memory allocation in arasan_cf_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
dcf3c1c1 0a65e125

+1 -3
+1 -3
drivers/ata/pata_arasan_cf.c
··· 809 809 } 810 810 811 811 acdev = devm_kzalloc(&pdev->dev, sizeof(*acdev), GFP_KERNEL); 812 - if (!acdev) { 813 - dev_warn(&pdev->dev, "kzalloc fail\n"); 812 + if (!acdev) 814 813 return -ENOMEM; 815 - } 816 814 817 815 if (pdata) 818 816 quirk = pdata->quirk;