Skip to content

Commit 2202d81

Browse files
Chen ZhouRich Felker
authored andcommitted
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 <[email protected]> Signed-off-by: Rich Felker <[email protected]>
1 parent be74273 commit 2202d81

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/sh/mm/consistent.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ int __init platform_resource_setup_memory(struct platform_device *pdev,
5757
return -ENOMEM;
5858
}
5959

60-
memset(buf, 0, memsize);
61-
6260
r->flags = IORESOURCE_MEM;
6361
r->start = dma_handle;
6462
r->end = r->start + memsize - 1;

0 commit comments

Comments
 (0)