mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 23:50:26 +09:00
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>
This commit is contained in:
parent
fb64072934
commit
fbaa266230
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user