Skip to content

Commit af263af

Browse files
Rafał Miłeckidavem330
authored andcommitted
net: broadcom: bcm4908_enet: drop unneeded memset()
dma_alloc_coherent takes care of zeroing allocated memory Suggested-by: Andrew Lunn <[email protected]> Signed-off-by: Rafał Miłecki <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9d61d13 commit af263af

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/broadcom/bcm4908_enet.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,6 @@ static int bcm4908_dma_alloc_buf_descs(struct bcm4908_enet *enet,
163163
if (!ring->slots)
164164
goto err_free_buf_descs;
165165

166-
memset(ring->cpu_addr, 0, size);
167-
168166
ring->read_idx = 0;
169167
ring->write_idx = 0;
170168

0 commit comments

Comments
 (0)