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:
Родитель
0a65e12515
Коммит
dcf3c1c1e8
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче