summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-05-27 11:14:54 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-28 10:38:22 +0200
commit5e83888561718730da71c23558d2296a3fe84de9 (patch)
treee6c73ebb599e1d9b40572070034793255e07b1bc
parent8aabae9e4a0fb80e11f747af1c1199814ce805b1 (diff)
downloadbarebox-5e83888561718730da71c23558d2296a3fe84de9.tar.gz
net: rtl8169: Do not zero out DMA coherent memory
Memory returned by dma_alloc_coherent() should already be zeroed out, so there's no need to do this explicitly. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/net/rtl8169.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c
index 4e9823d..80997dc 100644
--- a/drivers/net/rtl8169.c
+++ b/drivers/net/rtl8169.c
@@ -227,9 +227,6 @@ static void rtl8169_init_ring(struct rtl8169_priv *priv)
dma_sync_single_for_device((unsigned long)priv->rx_buf,
NUM_RX_DESC * PKT_BUF_SIZE, DMA_FROM_DEVICE);
- memset((void *)priv->tx_desc, 0, NUM_TX_DESC * sizeof(struct bufdesc));
- memset((void *)priv->rx_desc, 0, NUM_RX_DESC * sizeof(struct bufdesc));
-
for (i = 0; i < NUM_RX_DESC; i++) {
if (i == (NUM_RX_DESC - 1))
priv->rx_desc[i].status =