Messages in this thread Patch in this message | | | From | Chen Zhou <> | Subject | [PATCH next] sh: remove call to memset after dma_alloc_coherent | Date | Thu, 2 Jan 2020 09:54:30 +0800 |
| |
Function dma_alloc_coherent use in buf already zeroes out memory, so memset is not needed.
Signed-off-by: Chen Zhou <chenzhou10@huawei.com> --- arch/sh/mm/consistent.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/arch/sh/mm/consistent.c b/arch/sh/mm/consistent.c index 3169a34..0de206c 100644 --- a/arch/sh/mm/consistent.c +++ b/arch/sh/mm/consistent.c @@ -57,8 +57,6 @@ int __init platform_resource_setup_memory(struct platform_device *pdev, return -ENOMEM; } - memset(buf, 0, memsize); - r->flags = IORESOURCE_MEM; r->start = dma_handle; r->end = r->start + memsize - 1; -- 2.7.4
| |