summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/toshiba
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-08-02 15:53:48 +0200
committerDavid S. Miller <davem@davemloft.net>2020-08-04 01:01:11 +0200
commitc23cf402d0bb069310ce75bbf2758ff9c23fbe73 (patch)
treed02da34a87d704b93d431533cc18df9c3a0bbae2 /drivers/net/ethernet/toshiba
parentnet: spider_net: Fix the size used in a 'dma_free_coherent()' call (diff)
downloadlinux-c23cf402d0bb069310ce75bbf2758ff9c23fbe73.tar.xz
linux-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>
Diffstat (limited to 'drivers/net/ethernet/toshiba')
-rw-r--r--drivers/net/ethernet/toshiba/spider_net.c2
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;