atm: idt77252: Remove call to memset after dma_alloc_coherent

In commit 518a2f1925
("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>
This commit is contained in:
Fuqian Huang 2019-07-15 11:17:09 +08:00 committed by David S. Miller
parent 071c37983d
commit cef86f1536
1 changed files with 0 additions and 1 deletions

View File

@ -1379,7 +1379,6 @@ init_tsq(struct idt77252_dev *card)
printk("%s: can't allocate TSQ.\n", card->name); printk("%s: can't allocate TSQ.\n", card->name);
return -1; return -1;
} }
memset(card->tsq.base, 0, TSQSIZE);
card->tsq.last = card->tsq.base + TSQ_NUM_ENTRIES - 1; card->tsq.last = card->tsq.base + TSQ_NUM_ENTRIES - 1;
card->tsq.next = card->tsq.last; card->tsq.next = card->tsq.last;