From: Markus Elfring Date: Wed, 28 Mar 2018 14:34:28 +0000 (+0200) Subject: video: fsl-diu-fb: Delete an error message for a failed memory allocation in fsl_diu_... X-Git-Tag: v5.15~6020^2~231 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d43f4b5d50837ea4f0713b101faf7a4cf069e4b6;p=platform%2Fkernel%2Flinux-starfive.git video: fsl-diu-fb: Delete an error message for a failed memory allocation in fsl_diu_init() 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 Acked-by: Timur Tabi Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/video/fbdev/fsl-diu-fb.c b/drivers/video/fbdev/fsl-diu-fb.c index 25abbcf..1bfd13c 100644 --- a/drivers/video/fbdev/fsl-diu-fb.c +++ b/drivers/video/fbdev/fsl-diu-fb.c @@ -1960,12 +1960,8 @@ static int __init fsl_diu_init(void) of_node_put(np); coherence_data = vmalloc(coherence_data_size); - if (!coherence_data) { - pr_err("fsl-diu-fb: could not allocate coherence data " - "(size=%zu)\n", coherence_data_size); + if (!coherence_data) return -ENOMEM; - } - #endif ret = platform_driver_register(&fsl_diu_driver);