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:
parent
071c37983d
commit
cef86f1536
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user