diff options
author | Fuqian Huang <huangfq.daxian@gmail.com> | 2019-07-15 05:20:17 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2019-07-23 17:17:12 +0200 |
commit | 8cbff03bb090d537063c935058ab6fceb8ee30f5 (patch) | |
tree | 8b2a457985d318b570ba3259ab68d7248b07fc22 /drivers/video | |
parent | video: fbdev: nvidia: Remove dead code (diff) | |
download | linux-8cbff03bb090d537063c935058ab6fceb8ee30f5.tar.xz linux-8cbff03bb090d537063c935058ab6fceb8ee30f5.zip |
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/video')
-rw-r--r-- | drivers/video/fbdev/mmp/fb/mmpfb.c | 1 |
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 */ |