Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d33a7ee9 authored by Markus Elfring's avatar Markus Elfring Committed by Bartlomiej Zolnierkiewicz
Browse files

video/fbdev/vt8500lcdfb: Delete an error message for a failed memory...


video/fbdev/vt8500lcdfb: Delete an error message for a failed memory allocation in vt8500lcd_probe()

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Cc: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent d961b8a9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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");