s5p-mfc: Delete an error message for a failed memory allocation
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 8 Sep 2017 20:25:17 +0000 (22:25 +0200)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:55:57 +0000 (14:55 +0900)
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>
drivers/media/platform/s5p-mfc/s5p_mfc.c

index 9942932..339d6b9 100644 (file)
@@ -1271,10 +1271,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);