]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: ismt: Remove call to memset after dmam_alloc_coherent
authorFuqian Huang <huangfq.daxian@gmail.com>
Mon, 15 Jul 2019 03:17:39 +0000 (11:17 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 1 Aug 2019 12:48:55 +0000 (14:48 +0200)
commit03136e8c537b5f3cff41700026fc42e328fa957d
tree972104630a3dcf46225d9ded61ecf9c00fedb8d7
parent61e513267e9ebf0d8b79b72f7514e4d74b66d316
i2c: ismt: Remove call to memset after dmam_alloc_coherent

In commit 00f1c0702d66 ("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>
drivers/i2c/busses/i2c-ismt.c