mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
net: broadcom: bcm4908_enet: drop unneeded memset()
dma_alloc_coherent takes care of zeroing allocated memory Suggested-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9d61d138ab
commit
af263af646
1 changed files with 0 additions and 2 deletions
|
@ -163,8 +163,6 @@ static int bcm4908_dma_alloc_buf_descs(struct bcm4908_enet *enet,
|
|||
if (!ring->slots)
|
||||
goto err_free_buf_descs;
|
||||
|
||||
memset(ring->cpu_addr, 0, size);
|
||||
|
||||
ring->read_idx = 0;
|
||||
ring->write_idx = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue