In commit 518a2f1925c3
("dma-mapping: zero memory returned from dma_alloc_*"),
dma_alloc_coherent has already zeroed the memory.
So memset is not needed.
Signed-off-by: Fuqian Huang <redacted>
---
Changes in v3:
- Use actual commit rather than the merge commit in the commit message
drivers/video/fbdev/mmp/fb/mmpfb.c | 1 -
1 file changed, 1 deletion(-)
@@ -612,7 +612,6 @@ static int mmpfb_probe(struct platform_device *pdev)ret=-ENOMEM;gotofailed_destroy_mutex;}-memset(fbi->fb_start,0,fbi->fb_size);dev_info(fbi->dev,"fb %dk allocated\n",fbi->fb_size/1024);/* fb power on */
From: Emil Velikov <hidden> Date: 2019-07-15 10:40:55
On 2019/07/15, Fuqian Huang wrote:
In commit 518a2f1925c3
("dma-mapping: zero memory returned from dma_alloc_*"),
dma_alloc_coherent has already zeroed the memory.
So memset is not needed.
Signed-off-by: Fuqian Huang <redacted>
---
Changes in v3:
- Use actual commit rather than the merge commit in the commit message
drivers/video/fbdev/mmp/fb/mmpfb.c | 1 -
1 file changed, 1 deletion(-)
In commit 518a2f1925c3
("dma-mapping: zero memory returned from dma_alloc_*"),
dma_alloc_coherent has already zeroed the memory.
So memset is not needed.
Signed-off-by: Fuqian Huang <redacted>
---
Changes in v3:
- Use actual commit rather than the merge commit in the commit message
drivers/video/fbdev/mmp/fb/mmpfb.c | 1 -
1 file changed, 1 deletion(-)
Reviewed-by: Emil Velikov <redacted>
Patch queued for v5.4, thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics