diff options
author | Stefan Roese <sr@denx.de> | 2017-03-13 06:50:04 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2017-03-29 07:44:37 +0200 |
commit | fbaa266230872c4ea4ab5dff8f0b0f8b80417092 (patch) | |
tree | 509cad8fa153ea57063a4d710f88fdc6004213d6 /drivers | |
parent | fb64072934a5a4d0e8b89d2e9fd64c5e12d5c2ea (diff) |
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 <sr@denx.de>
Cc: Stefan Chulski <stefanc@marvell.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/mvpp2.c | 4 |
1 files changed, 0 insertions, 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; } |