提交 2202d81b 编写于 作者: C Chen Zhou 提交者: Rich Felker

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: NChen Zhou <chenzhou10@huawei.com>
Signed-off-by: NRich Felker <dalias@libc.org>
上级 be74273a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册