forked from luck/tmp_suning_uos_patched
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:
parent
27c4203a3d
commit
b02b54914b
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user