video: fsl-diu-fb: Delete an error message for a failed memory allocation in fsl_diu_...
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 28 Mar 2018 14:34:28 +0000 (16:34 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 28 Mar 2018 14:34:28 +0000 (16:34 +0200)
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>
Acked-by: Timur Tabi <timur@tabi.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/fsl-diu-fb.c

index 25abbcf..1bfd13c 100644 (file)
@@ -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);