提交 f6cd3232 编写于 作者: M Markus Elfring 提交者: Mauro Carvalho Chehab

media: s5p-mfc: Delete an error message for a failed memory allocation

Omit an extra message for a memory allocation failure in s5p_mfc_probe()
function.  This issue was detected by using the Coccinelle software.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 a2640560
...@@ -1270,10 +1270,8 @@ static int s5p_mfc_probe(struct platform_device *pdev) ...@@ -1270,10 +1270,8 @@ static int s5p_mfc_probe(struct platform_device *pdev)
pr_debug("%s++\n", __func__); pr_debug("%s++\n", __func__);
dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
if (!dev) { if (!dev)
dev_err(&pdev->dev, "Not enough memory for MFC device\n");
return -ENOMEM; return -ENOMEM;
}
spin_lock_init(&dev->irqlock); spin_lock_init(&dev->irqlock);
spin_lock_init(&dev->condlock); spin_lock_init(&dev->condlock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册