Commit dcf3c1c1 authored by Markus Elfring's avatar Markus Elfring Committed by Tejun Heo

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 0a65e125
...@@ -809,10 +809,8 @@ static int arasan_cf_probe(struct platform_device *pdev) ...@@ -809,10 +809,8 @@ static int arasan_cf_probe(struct platform_device *pdev)
} }
acdev = devm_kzalloc(&pdev->dev, sizeof(*acdev), GFP_KERNEL); acdev = devm_kzalloc(&pdev->dev, sizeof(*acdev), GFP_KERNEL);
if (!acdev) { if (!acdev)
dev_warn(&pdev->dev, "kzalloc fail\n");
return -ENOMEM; return -ENOMEM;
}
if (pdata) if (pdata)
quirk = pdata->quirk; quirk = pdata->quirk;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment