Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Andre Korol and committed by
Ulf Hansson
4cd4e823 8ea84b50

-1
-1
drivers/mmc/host/loongson2-mmc.c
··· 846 846 if (!host->sg_cpu) 847 847 return -ENOMEM; 848 848 849 - memset(host->sg_cpu, 0, PAGE_SIZE); 850 849 return 0; 851 850 } 852 851