OSDN Git Service

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)
commit34de3513e668d5ad46bd32ebee63f9e3dc57e1db
tree972104630a3dcf46225d9ded61ecf9c00fedb8d7
parente5738bc46d49642dc4804bad3656b23016f8e1f1
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>
drivers/i2c/busses/i2c-ismt.c