diff options
author | Fuqian Huang <huangfq.daxian@gmail.com> | 2019-07-15 11:17:09 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-15 11:06:27 -0700 |
commit | cef86f1536b02e61e699f53b5f8782067481580d (patch) | |
tree | 60fe478d4916597cfae71478768ecf80abbb9844 /drivers/atm | |
parent | 071c37983d99da07797294ea78e9da1a6e287144 (diff) | |
download | linux-cef86f1536b02e61e699f53b5f8782067481580d.tar.bz2 |
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>
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/idt77252.c | 1 |
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; |