Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Markus Elfring and committed by
Bartlomiej Zolnierkiewicz
66891254 4befd0cf

+1 -3
+1 -3
drivers/video/fbdev/smscufx.c
··· 1307 1307 * Alloc system memory for virtual framebuffer 1308 1308 */ 1309 1309 new_fb = vmalloc(new_len); 1310 - if (!new_fb) { 1311 - pr_err("Virtual framebuffer alloc failed"); 1310 + if (!new_fb) 1312 1311 return -ENOMEM; 1313 - } 1314 1312 1315 1313 if (info->screen_base) { 1316 1314 memcpy(new_fb, old_fb, old_len);