[U-Boot] [PATCH v1 39/41] net: mvpp2: Remove unreferenced in_use_thresh from struct mvpp2_bm_pool

Stefan Roese sr at denx.de
Tue Mar 21 14:28:00 UTC 2017


As pointer out by Stefan Chulski, this variable is unused and should be
removed.

Signed-off-by: Stefan Roese <sr at denx.de>
Cc: Stefan Chulski <stefanc at marvell.com>
---

 drivers/net/mvpp2.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c
index b506483aa9..954041e7c3 100644
--- a/drivers/net/mvpp2.c
+++ b/drivers/net/mvpp2.c
@@ -1260,9 +1260,6 @@ struct mvpp2_bm_pool {
 
 	/* Ports using BM pool */
 	u32 port_map;
-
-	/* Occupied buffers indicator */
-	int in_use_thresh;
 };
 
 /* Static declaractions */
@@ -2815,7 +2812,6 @@ static int mvpp2_bm_bufs_add(struct mvpp2_port *port,
 
 	/* Update BM driver with number of buffers added to pool */
 	bm_pool->buf_num += i;
-	bm_pool->in_use_thresh = bm_pool->buf_num / 4;
 
 	return i;
 }
-- 
2.12.0



More information about the U-Boot mailing list