From: Chen Zhou Date: Thu, 2 Jan 2020 01:54:30 +0000 (+0800) Subject: sh: remove call to memset after dma_alloc_coherent X-Git-Tag: v5.10.7~1815^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2202d81b098ef776153c6b40c5404d486042a3ed;p=platform%2Fkernel%2Flinux-rpi.git sh: remove call to memset after dma_alloc_coherent Function dma_alloc_coherent use in buf already zeroes out memory, so memset is not needed. Signed-off-by: Chen Zhou Signed-off-by: Rich Felker --- 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;