From fbaa266230872c4ea4ab5dff8f0b0f8b80417092 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Mon, 13 Mar 2017 06:50:04 +0100 Subject: [PATCH] net: mvpp2: Remove unreferenced in_use_thresh from struct mvpp2_bm_pool As pointed out by Stefan Chulski, this variable is unused and should be removed. Signed-off-by: Stefan Roese Cc: Stefan Chulski Acked-by: Joe Hershberger --- drivers/net/mvpp2.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c index dc9fbb9068..8ffe6c84d4 100644 --- a/drivers/net/mvpp2.c +++ b/drivers/net/mvpp2.c @@ -1245,9 +1245,6 @@ struct mvpp2_bm_pool { /* Ports using BM pool */ u32 port_map; - - /* Occupied buffers indicator */ - int in_use_thresh; }; /* Static declaractions */ @@ -2792,7 +2789,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.25.1