提交 dcf3c1c1 编写于 作者: M Markus Elfring 提交者: 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: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 0a65e125
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册