summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFuqian Huang <huangfq.daxian@gmail.com>2019-07-15 11:20:17 +0800
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2019-07-23 17:17:12 +0200
commit8cbff03bb090d537063c935058ab6fceb8ee30f5 (patch)
tree8b2a457985d318b570ba3259ab68d7248b07fc22 /drivers
parent9b9f35e7c6594b109ee4d70c3fd19a82ff88e8a6 (diff)
video: fbdev-MMP: Remove call to memset after dma_alloc_coherent
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 <huangfq.daxian@gmail.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190715032017.7311-1-huangfq.daxian@gmail.com
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/fbdev/mmp/fb/mmpfb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/video/fbdev/mmp/fb/mmpfb.c b/drivers/video/fbdev/mmp/fb/mmpfb.c
index e5b56f2199df..47bc7c59bbd8 100644
--- a/drivers/video/fbdev/mmp/fb/mmpfb.c
+++ b/drivers/video/fbdev/mmp/fb/mmpfb.c
@@ -612,7 +612,6 @@ static int mmpfb_probe(struct platform_device *pdev)
ret = -ENOMEM;
goto failed_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 */