summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-06-11 11:33:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-06-11 11:33:33 +0200
commit83db5efb05a1168f2a8ddc0b69072e5fd9af2b25 (patch)
tree90fc4137e9ff72d2e94e2b0c6b0f28776e33d7bc /drivers/net
parented16d83afd1fcc0344e30a7ab053e095b2a5711a (diff)
parent380282a061967a2cebf416f12a63c793b2a51c03 (diff)
downloadbarebox-83db5efb05a1168f2a8ddc0b69072e5fd9af2b25.tar.gz
Merge branch 'for-next/dma'
Diffstat (limited to 'drivers/net')
-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 =