net: mvpp2: Remove unreferenced in_use_thresh from struct mvpp2_bm_pool
authorStefan Roese <sr@denx.de>
Mon, 13 Mar 2017 05:50:04 +0000 (06:50 +0100)
committerStefan Roese <sr@denx.de>
Wed, 29 Mar 2017 05:44:37 +0000 (07:44 +0200)
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>
drivers/net/mvpp2.c

index dc9fbb9068517136a0b24b97c987d998485f8ff3..8ffe6c84d438d396612feec0ce4be5bb995a5544 100644 (file)
@@ -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;
 }