From: Markus Elfring Date: Wed, 28 Mar 2018 14:34:29 +0000 (+0200) Subject: video: au1100fb: Delete an error message for a failed memory allocation in au1100fb_d... X-Git-Tag: v5.15~6020^2~224 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29914badc59b23e496231c3234f7d3f3f35708c4;p=platform%2Fkernel%2Flinux-starfive.git video: au1100fb: Delete an error message for a failed memory allocation in au1100fb_drv_probe() 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 Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/video/fbdev/au1100fb.c b/drivers/video/fbdev/au1100fb.c index 8de42f6..cae17d0 100644 --- a/drivers/video/fbdev/au1100fb.c +++ b/drivers/video/fbdev/au1100fb.c @@ -418,10 +418,8 @@ static int au1100fb_drv_probe(struct platform_device *dev) /* Allocate new device private */ fbdev = devm_kzalloc(&dev->dev, sizeof(struct au1100fb_device), GFP_KERNEL); - if (!fbdev) { - print_err("fail to allocate device private record"); + if (!fbdev) return -ENOMEM; - } if (au1100fb_setup(fbdev)) goto failed;