aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/Makefile
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-02-21 11:28:07 +0100
committerDavid S. Miller <davem@davemloft.net>2017-02-21 13:16:15 -0500
commit7ef7e1d949cd517d30a3cc6c7f48bd017d81af6b (patch)
treed00f087ba81cd74a4095172c6382ea6b1822d1f1 /drivers/net/Makefile
parentnet: mvpp2: remove unused 'tx_skb' field of 'struct mvpp2_tx_queue' (diff)
downloadlinux-dev-7ef7e1d949cd517d30a3cc6c7f48bd017d81af6b.tar.xz
linux-dev-7ef7e1d949cd517d30a3cc6c7f48bd017d81af6b.zip
net: mvpp2: drop useless fields in mvpp2_bm_pool and related code
This commit drops dead code from the mvpp2 driver. The 'in_use' and 'in_use_thresh' fields of 'struct mvpp2_bm_pool' are incremented/decremented/initialized in various places. But they are only used in one place: if (is_recycle && (atomic_read(&bm_pool->in_use) < bm_pool->in_use_thresh)) return 0; However 'is_recycle', passed as argument to mvpp2_rx_refill() is always false. So in fact, this code is never reached, and the 'is_recycle' argument is useless. So let's drop this code. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/Makefile')
0 files changed, 0 insertions, 0 deletions