summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFuqian Huang2019-07-15 05:17:09 +0200
committerDavid S. Miller2019-07-15 20:06:27 +0200
commitcef86f1536b02e61e699f53b5f8782067481580d (patch)
tree60fe478d4916597cfae71478768ecf80abbb9844
parentnet: neigh: fix multiple neigh timer scheduling (diff)
downloadkernel-qcow2-linux-cef86f1536b02e61e699f53b5f8782067481580d.tar.gz
kernel-qcow2-linux-cef86f1536b02e61e699f53b5f8782067481580d.tar.xz
kernel-qcow2-linux-cef86f1536b02e61e699f53b5f8782067481580d.zip
atm: idt77252: Remove call to memset after dma_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. Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/atm/idt77252.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c
index 43a14579e80e..df51680e8931 100644
--- a/drivers/atm/idt77252.c
+++ b/drivers/atm/idt77252.c
@@ -1379,7 +1379,6 @@ init_tsq(struct idt77252_dev *card)
printk("%s: can't allocate TSQ.\n", card->name);
return -1;
}
- memset(card->tsq.base, 0, TSQSIZE);
card->tsq.last = card->tsq.base + TSQ_NUM_ENTRIES - 1;
card->tsq.next = card->tsq.last;