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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
a2640560a0
commit
f6cd323289
|
@ -1270,10 +1270,8 @@ static int s5p_mfc_probe(struct platform_device *pdev)
|
|||
|
||||
pr_debug("%s++\n", __func__);
|
||||
dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
|
||||
if (!dev) {
|
||||
dev_err(&pdev->dev, "Not enough memory for MFC device\n");
|
||||
if (!dev)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
spin_lock_init(&dev->irqlock);
|
||||
spin_lock_init(&dev->condlock);
|
||||
|
|
Loading…
Reference in New Issue