mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
mmc: loongson2-mmc: drop redundant memset after dma_alloc_coherent()
dma_alloc_coherent() returns zeroed memory, so the memset() immediately after allocation is redundant. Signed-off-by: Andre Korol <andre.korol.dev@gmail.com> Reviewed-by: Binbin Zhou <zhoubinbin@loongson.cn> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
8ea84b50a9
commit
4cd4e82316
|
|
@ -846,7 +846,6 @@ static int ls2k2000_mmc_set_internal_dma(struct loongson2_mmc_host *host,
|
|||
if (!host->sg_cpu)
|
||||
return -ENOMEM;
|
||||
|
||||
memset(host->sg_cpu, 0, PAGE_SIZE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user