summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2015-02-24 22:00:19 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-02-25 08:36:48 +0100
commit02972681acea32220c2bebe7e4024712bb75f3e0 (patch)
treeb4b395ebfba41eec5550669512ce7c85def85883
parenta0513aadb3ac06dffd09d09d968f9c1347229867 (diff)
downloadbarebox-02972681acea32220c2bebe7e4024712bb75f3e0.tar.gz
net: rtl8169: silence compiler warning
Silence warning about cast from volatile to normal pointer, as this is the intended bhavior here. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/net/rtl8169.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c
index 19f5763..f8a6500 100644
--- a/drivers/net/rtl8169.c
+++ b/drivers/net/rtl8169.c
@@ -236,8 +236,8 @@ static void rtl8169_init_ring(struct rtl8169_priv *priv)
dma_clean_range((unsigned long)priv->rx_buf,
(unsigned long)priv->rx_buf + NUM_RX_DESC * PKT_BUF_SIZE);
- memset(priv->tx_desc, 0, NUM_TX_DESC * sizeof(struct bufdesc));
- memset(priv->rx_desc, 0, NUM_RX_DESC * sizeof(struct bufdesc));
+ 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))