diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-03-28 10:34:28 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-03-28 10:34:28 -0400 |
commit | d43f4b5d50837ea4f0713b101faf7a4cf069e4b6 (patch) | |
tree | b0b390e6c94fef2f5b661859b75464be62ad6eef | |
parent | 3d2ad0a1b7f0bcc65da57152b98a08633b410e63 (diff) |
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 <elfring@users.sourceforge.net>
Acked-by: Timur Tabi <timur@tabi.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
-rw-r--r-- | drivers/video/fbdev/fsl-diu-fb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/video/fbdev/fsl-diu-fb.c b/drivers/video/fbdev/fsl-diu-fb.c index 25abbcf38913..1bfd13cbd4e3 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) | |||
1960 | 1960 | ||
1961 | of_node_put(np); | 1961 | of_node_put(np); |
1962 | coherence_data = vmalloc(coherence_data_size); | 1962 | coherence_data = vmalloc(coherence_data_size); |
1963 | if (!coherence_data) { | 1963 | if (!coherence_data) |
1964 | pr_err("fsl-diu-fb: could not allocate coherence data " | ||
1965 | "(size=%zu)\n", coherence_data_size); | ||
1966 | return -ENOMEM; | 1964 | return -ENOMEM; |
1967 | } | ||
1968 | |||
1969 | #endif | 1965 | #endif |
1970 | 1966 | ||
1971 | ret = platform_driver_register(&fsl_diu_driver); | 1967 | ret = platform_driver_register(&fsl_diu_driver); |