1
0
Fork 0

video: smscufx: Delete an error message for a failed memory allocation in ufx_realloc_framebuffer()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Cc: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
hifive-unleashed-5.1
Markus Elfring 2018-03-28 16:34:28 +02:00 committed by Bartlomiej Zolnierkiewicz
parent 4befd0cf21
commit 668912549d
1 changed files with 1 additions and 3 deletions

View File

@ -1307,10 +1307,8 @@ static int ufx_realloc_framebuffer(struct ufx_data *dev, struct fb_info *info)
* Alloc system memory for virtual framebuffer
*/
new_fb = vmalloc(new_len);
if (!new_fb) {
pr_err("Virtual framebuffer alloc failed");
if (!new_fb)
return -ENOMEM;
}
if (info->screen_base) {
memcpy(new_fb, old_fb, old_len);