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

i2c: ismt: Remove call to memset after dmam_alloc_coherent

In commit 518a2f1925c3 ("dma-mapping: zero memory returned from
dma_alloc_*"), dma_alloc_coherent has already zeroed the memory. So
memset is not needed.

Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

Fuqian Huang and committed by
Wolfram Sang
34de3513 e5738bc4

-2
-2
drivers/i2c/busses/i2c-ismt.c
··· 781 781 if (!priv->hw) 782 782 return -ENOMEM; 783 783 784 - memset(priv->hw, 0, (ISMT_DESC_ENTRIES * sizeof(struct ismt_desc))); 785 - 786 784 priv->head = 0; 787 785 init_completion(&priv->cmp); 788 786