提交 af263af6 编写于 作者: R Rafał Miłecki 提交者: David S. Miller

net: broadcom: bcm4908_enet: drop unneeded memset()

dma_alloc_coherent takes care of zeroing allocated memory
Suggested-by: NAndrew Lunn <andrew@lunn.ch>
Signed-off-by: NRafał Miłecki <rafal@milecki.pl>
Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 9d61d138
...@@ -163,8 +163,6 @@ static int bcm4908_dma_alloc_buf_descs(struct bcm4908_enet *enet, ...@@ -163,8 +163,6 @@ static int bcm4908_dma_alloc_buf_descs(struct bcm4908_enet *enet,
if (!ring->slots) if (!ring->slots)
goto err_free_buf_descs; goto err_free_buf_descs;
memset(ring->cpu_addr, 0, size);
ring->read_idx = 0; ring->read_idx = 0;
ring->write_idx = 0; ring->write_idx = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册