Commit f6cd3232 authored by Markus Elfring's avatar Markus Elfring Committed by 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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment