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>
This commit is contained in:
Markus Elfring 2018-02-16 16:01:12 +01:00 committed by Tejun Heo
parent 0a65e12515
commit dcf3c1c1e8
1 changed files with 1 additions and 3 deletions

View File

@ -809,10 +809,8 @@ static int arasan_cf_probe(struct platform_device *pdev)
}
acdev = devm_kzalloc(&pdev->dev, sizeof(*acdev), GFP_KERNEL);
if (!acdev) {
dev_warn(&pdev->dev, "kzalloc fail\n");
if (!acdev)
return -ENOMEM;
}
if (pdata)
quirk = pdata->quirk;