mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
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>
This commit is contained in:
parent
3d2ad0a1b7
commit
d43f4b5d50
@ -1960,12 +1960,8 @@ static int __init fsl_diu_init(void)
|
|||||||
|
|
||||||
of_node_put(np);
|
of_node_put(np);
|
||||||
coherence_data = vmalloc(coherence_data_size);
|
coherence_data = vmalloc(coherence_data_size);
|
||||||
if (!coherence_data) {
|
if (!coherence_data)
|
||||||
pr_err("fsl-diu-fb: could not allocate coherence data "
|
|
||||||
"(size=%zu)\n", coherence_data_size);
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ret = platform_driver_register(&fsl_diu_driver);
|
ret = platform_driver_register(&fsl_diu_driver);
|
||||||
|
Loading…
Reference in New Issue
Block a user