]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
video/fbdev/vt8500lcdfb: Delete an error message for a failed memory allocation in...
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 29 Dec 2017 18:48:44 +0000 (19:48 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 29 Dec 2017 18:48:44 +0000 (19:48 +0100)
Omit an extra message for a memory allocation failure in this function
(please note that there can be only one vt8500lcdfb device in the system).

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Cc: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/vt8500lcdfb.c

index 1a1176bf09062eba2f4852766d0eff0760aaa331..5c5cd29230412d08b9042b7e4cd8d166ef14480f 100644 (file)
@@ -289,10 +289,8 @@ static int vt8500lcd_probe(struct platform_device *pdev)
 
        fbi = devm_kzalloc(&pdev->dev, sizeof(struct vt8500lcd_info)
                        + sizeof(u32) * 16, GFP_KERNEL);
-       if (!fbi) {
-               dev_err(&pdev->dev, "Failed to initialize framebuffer device\n");
+       if (!fbi)
                return -ENOMEM;
-       }
 
        strcpy(fbi->fb.fix.id, "VT8500 LCD");