diff options
author | Chen Zhou <chenzhou10@huawei.com> | 2020-01-02 02:54:30 +0100 |
---|---|---|
committer | Rich Felker <dalias@libc.org> | 2020-08-15 04:05:03 +0200 |
commit | 2202d81b098ef776153c6b40c5404d486042a3ed (patch) | |
tree | 1ed9f3df820e1f90dcffc5bb80bb0932de492550 /arch | |
parent | sh: Fix unneeded constructor in page table allocation (diff) | |
download | linux-2202d81b098ef776153c6b40c5404d486042a3ed.tar.xz linux-2202d81b098ef776153c6b40c5404d486042a3ed.zip |
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')
-rw-r--r-- | arch/sh/mm/consistent.c | 2 |
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; |