dma_alloc_coherent() already clears the allocated memory, there is no need to explicitly call memset(). Moreover, it is likely that the size in the memset() is incorrect and should be "size * sizeof(*ring->desc)". Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/d5acce7dd108887832c9719f62c7201b4c83b3fb.1676184599.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jakub Kicinski <kuba@kernel.org> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| mtk_eth_path.c | ||
| mtk_eth_soc.c | ||
| mtk_eth_soc.h | ||
| mtk_ppe.c | ||
| mtk_ppe.h | ||
| mtk_ppe_debugfs.c | ||
| mtk_ppe_offload.c | ||
| mtk_ppe_regs.h | ||
| mtk_sgmii.c | ||
| mtk_star_emac.c | ||
| mtk_wed.c | ||
| mtk_wed.h | ||
| mtk_wed_debugfs.c | ||
| mtk_wed_mcu.c | ||
| mtk_wed_ops.c | ||
| mtk_wed_regs.h | ||
| mtk_wed_wo.c | ||
| mtk_wed_wo.h | ||