From: Markus Elfring Date: Wed, 28 Mar 2018 14:34:28 +0000 (+0200) Subject: video: smscufx: Delete an error message for a failed memory allocation in ufx_realloc... X-Git-Tag: v5.15~6020^2~233 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=668912549db0fa4fedc3aae3fc389b492958a275;p=platform%2Fkernel%2Flinux-starfive.git 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 Cc: Steve Glendinning Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/video/fbdev/smscufx.c b/drivers/video/fbdev/smscufx.c index abbded6..22b606a 100644 --- a/drivers/video/fbdev/smscufx.c +++ b/drivers/video/fbdev/smscufx.c @@ -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);