Commit d961b8a9 authored by Markus Elfring's avatar Markus Elfring Committed by Bartlomiej Zolnierkiewicz

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

Omit an extra message for a memory allocation failure in this function
(please note that there can be only one wm8505fb 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 ad614419
...@@ -276,10 +276,8 @@ static int wm8505fb_probe(struct platform_device *pdev) ...@@ -276,10 +276,8 @@ static int wm8505fb_probe(struct platform_device *pdev)
fbi = devm_kzalloc(&pdev->dev, sizeof(struct wm8505fb_info) + fbi = devm_kzalloc(&pdev->dev, sizeof(struct wm8505fb_info) +
sizeof(u32) * 16, GFP_KERNEL); sizeof(u32) * 16, GFP_KERNEL);
if (!fbi) { if (!fbi)
dev_err(&pdev->dev, "Failed to initialize framebuffer device\n");
return -ENOMEM; return -ENOMEM;
}
strcpy(fbi->fb.fix.id, DRIVER_NAME); strcpy(fbi->fb.fix.id, DRIVER_NAME);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment