summaryrefslogtreecommitdiff
path: root/arch/sh/mm
diff options
context:
space:
mode:
authorChen Zhou <chenzhou10@huawei.com>2020-01-02 09:54:30 +0800
committerRich Felker <dalias@libc.org>2020-08-14 22:05:03 -0400
commit2202d81b098ef776153c6b40c5404d486042a3ed (patch)
tree1ed9f3df820e1f90dcffc5bb80bb0932de492550 /arch/sh/mm
parentbe74273aee2c94e8322404d0b6e84e4f30d911ed (diff)
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 <chenzhou10@huawei.com> Signed-off-by: Rich Felker <dalias@libc.org>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r--arch/sh/mm/consistent.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/sh/mm/consistent.c b/arch/sh/mm/consistent.c
index 3169a343a5ab..0de206c1acfe 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;