summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorFuqian Huang <huangfq.daxian@gmail.com>2019-07-15 05:17:39 +0200
committerWolfram Sang <wsa@the-dreams.de>2019-08-01 14:48:55 +0200
commit34de3513e668d5ad46bd32ebee63f9e3dc57e1db (patch)
tree972104630a3dcf46225d9ded61ecf9c00fedb8d7 /drivers/i2c
parenti2c: tegra: Compile PM functions unconditionally (diff)
downloadlinux-34de3513e668d5ad46bd32ebee63f9e3dc57e1db.tar.xz
linux-34de3513e668d5ad46bd32ebee63f9e3dc57e1db.zip
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-ismt.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-ismt.c
index 02d23edb2fb1..2f95e25a10f7 100644
--- a/drivers/i2c/busses/i2c-ismt.c
+++ b/drivers/i2c/busses/i2c-ismt.c
@@ -781,8 +781,6 @@ static int ismt_dev_init(struct ismt_priv *priv)
if (!priv->hw)
return -ENOMEM;
- memset(priv->hw, 0, (ISMT_DESC_ENTRIES * sizeof(struct ismt_desc)));
-
priv->head = 0;
init_completion(&priv->cmp);