Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d43f4b5d authored by Markus Elfring's avatar Markus Elfring Committed by Bartlomiej Zolnierkiewicz
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Acked-by: default avatarTimur Tabi <timur@tabi.org>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent 3d2ad0a1
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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);