video: fbdev: don't print error message on framebuffer_alloc() failure
framebuffer_alloc() can fail only on kzalloc() memory allocation failure and since kzalloc() will print error message in such case we can omit printing extra error message in drivers (which BTW is what the majority of framebuffer_alloc() users is doing already). Cc: "Bruno Prémont" <bonbons@linux-vserver.org> Cc: Jiri Kosina <jikos@kernel.org> Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
@@ -1892,12 +1892,8 @@ static int omapfb_create_framebuffers(struct omapfb2_device *fbdev)
|
||||
|
||||
fbi = framebuffer_alloc(sizeof(struct omapfb_info),
|
||||
fbdev->dev);
|
||||
|
||||
if (fbi == NULL) {
|
||||
dev_err(fbdev->dev,
|
||||
"unable to allocate memory for plane info\n");
|
||||
if (!fbi)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
clear_fb_info(fbi);
|
||||
|
||||
|
Reference in New Issue
Block a user