video: s3c-fb: Delete an error message for a failed memory allocation in s3c_fb_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 28 Mar 2018 14:34:28 +0000 (16:34 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 28 Mar 2018 14:34:28 +0000 (16:34 +0200)
Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/s3c-fb.c

index 5f4f696c2ecfd5e677575675be2969b1ba09947d..0914c973cbd9bac4fc05a2581f2a25525e3f483e 100644 (file)
@@ -1384,10 +1384,8 @@ static int s3c_fb_probe(struct platform_device *pdev)
        }
 
        sfb = devm_kzalloc(dev, sizeof(struct s3c_fb), GFP_KERNEL);
-       if (!sfb) {
-               dev_err(dev, "no memory for framebuffers\n");
+       if (!sfb)
                return -ENOMEM;
-       }
 
        dev_dbg(dev, "allocate new framebuffer %p\n", sfb);