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:
@@ -762,10 +762,8 @@ static int hvfb_probe(struct hv_device *hdev,
|
||||
int ret;
|
||||
|
||||
info = framebuffer_alloc(sizeof(struct hvfb_par), &hdev->device);
|
||||
if (!info) {
|
||||
pr_err("No memory for framebuffer info\n");
|
||||
if (!info)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
par = info->par;
|
||||
par->info = info;
|
||||
|
Reference in New Issue
Block a user