# \[PATCH\] video: fsl-diu-fb: Delete an error message for a failed memory allocation in fsl\_diu\_init()

- Subsystems: FRAMEBUFFER LAYER, FREESCALE DIU FRAMEBUFFER DRIVER, THE REST
- Maintainers: Helge Deller, Timur Tabi, Linus Torvalds
- List: linux-fbdev
- 3 messages, 3 authors
- Page: https://ratatoskr.run/linux-fbdev/2017/11/5141008/t

## \[PATCH\] video: fsl-diu-fb: Delete an error message for a failed memory allocation in fsl\_diu\_init()

- From: SF Markus Elfring \<hidden\>
- Date: 2017-11-27 09:01:13 
- Message: https://ratatoskr.run/linux-fbdev/2017/11/5141008.md

```text
From: Markus Elfring <redacted>
Date: Mon, 27 Nov 2017 09:56:09 +0100

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 <redacted>
---
 drivers/video/fbdev/fsl-diu-fb.c | 6 +-----
 1 file changed, 1 insertion(+), 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)
 
 	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);
-- 
2.15.0

```

## Re: \[PATCH\] video: fsl-diu-fb: Delete an error message for a failed memory allocation in fsl\_diu\_init()

- From: Timur Tabi \<hidden\>
- Date: 2017-11-27 17:38:15 
- Message: https://ratatoskr.run/linux-fbdev/2017/11/5141620.md

```text
On 11/27/17 3:00 AM, SF Markus Elfring wrote:
> From: Markus Elfring<redacted>
> Date: Mon, 27 Nov 2017 09:56:09 +0100
> 
> 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<redacted>

Acked-by: Timur Tabi <redacted>
```

## Re: \[PATCH\] video: fsl-diu-fb: Delete an error message for a failed memory allocation in fsl\_diu\_init()

- From: Bartlomiej Zolnierkiewicz \<hidden\>
- Date: 2018-03-28 14:00:17 
- Message: https://ratatoskr.run/linux-fbdev/2018/03/5244820.md

```text
On Monday, November 27, 2017 11:31:10 AM Timur Tabi wrote:
> On 11/27/17 3:00 AM, SF Markus Elfring wrote:
> > From: Markus Elfring<redacted>
> > Date: Mon, 27 Nov 2017 09:56:09 +0100
> > 
> > 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<redacted>
> 
> Acked-by: Timur Tabi <redacted>

Patch queued for 4.17, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

```
