Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66891254 authored by Markus Elfring's avatar Markus Elfring Committed by Bartlomiej Zolnierkiewicz
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Cc: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent 4befd0cf
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);