561f045b75dd03f9db053e969ae973d4f878c495
[openwrt/staging/mans0n.git] /
1 From af263af64683f018be9ce3c309edfa9903f5109a Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Thu, 11 Feb 2021 13:12:35 +0100
4 Subject: [PATCH] net: broadcom: bcm4908_enet: drop unneeded memset()
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 dma_alloc_coherent takes care of zeroing allocated memory
10
11 Suggested-by: Andrew Lunn <andrew@lunn.ch>
12 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
13 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
14 Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
15 Signed-off-by: David S. Miller <davem@davemloft.net>
16 ---
17 drivers/net/ethernet/broadcom/bcm4908_enet.c | 2 --
18 1 file changed, 2 deletions(-)
19
20 --- a/drivers/net/ethernet/broadcom/bcm4908_enet.c
21 +++ b/drivers/net/ethernet/broadcom/bcm4908_enet.c
22 @@ -163,8 +163,6 @@ static int bcm4908_dma_alloc_buf_descs(s
23 if (!ring->slots)
24 goto err_free_buf_descs;
25
26 - memset(ring->cpu_addr, 0, size);
27 -
28 ring->read_idx = 0;
29 ring->write_idx = 0;
30