提交 fbaa2662 编写于 作者: S Stefan Roese

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: NStefan Roese <sr@denx.de>
Cc: Stefan Chulski <stefanc@marvell.com>
Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
上级 fb640729
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册