mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 22:28:00 +00:00
net: spider_net: Remove a useless memset
Avoid a memset after a call to 'dma_alloc_coherent()'.
This is useless since
commit 518a2f1925
("dma-mapping: zero memory returned from dma_alloc_*")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
36f28f7687
commit
c23cf402d0
1 changed files with 0 additions and 2 deletions
|
@ -314,8 +314,6 @@ spider_net_init_chain(struct spider_net_card *card,
|
||||||
if (!chain->hwring)
|
if (!chain->hwring)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
memset(chain->ring, 0, chain->num_desc * sizeof(struct spider_net_descr));
|
|
||||||
|
|
||||||
/* Set up the hardware pointers in each descriptor */
|
/* Set up the hardware pointers in each descriptor */
|
||||||
descr = chain->ring;
|
descr = chain->ring;
|
||||||
hwdescr = chain->hwring;
|
hwdescr = chain->hwring;
|
||||||
|
|
Loading…
Add table
Reference in a new issue