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 коммит произвёл Tejun Heo
Родитель 0a65e12515
Коммит dcf3c1c1e8
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -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;