diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-08-02 15:53:48 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-03 16:01:11 -0700 |
commit | c23cf402d0bb069310ce75bbf2758ff9c23fbe73 (patch) | |
tree | d02da34a87d704b93d431533cc18df9c3a0bbae2 | |
parent | 36f28f7687a9ce665479cce5d64ce7afaa9e77ae (diff) | |
download | linux-stable-c23cf402d0bb069310ce75bbf2758ff9c23fbe73.tar.gz linux-stable-c23cf402d0bb069310ce75bbf2758ff9c23fbe73.tar.bz2 linux-stable-c23cf402d0bb069310ce75bbf2758ff9c23fbe73.zip |
net: spider_net: Remove a useless memset
Avoid a memset after a call to 'dma_alloc_coherent()'.
This is useless since
commit 518a2f1925c3 ("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>
-rw-r--r-- | drivers/net/ethernet/toshiba/spider_net.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/toshiba/spider_net.c b/drivers/net/ethernet/toshiba/spider_net.c index 94267e1f5d30..07389702a540 100644 --- a/drivers/net/ethernet/toshiba/spider_net.c +++ b/drivers/net/ethernet/toshiba/spider_net.c @@ -314,8 +314,6 @@ spider_net_init_chain(struct spider_net_card *card, if (!chain->hwring) return -ENOMEM; - memset(chain->ring, 0, chain->num_desc * sizeof(struct spider_net_descr)); - /* Set up the hardware pointers in each descriptor */ descr = chain->ring; hwdescr = chain->hwring; |