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:
Andre Korol
2026-01-29 00:59:17 -03:00
committed by Ulf Hansson
parent 8ea84b50a9
commit 4cd4e82316

View File

@@ -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;
}