From 6c0eb3f510e9c9871a72fb2d02cac39e609e2fbf Mon Sep 17 00:00:00 2001 From: YueHaibing Date: Tue, 5 May 2020 16:42:56 +0800 Subject: [PATCH] net: stmmac: Remove unused inline function stmmac_rx_threshold_count There's no caller in-tree since commit 232086e65d14 ("net: stmmac: Introducing support for Page Pool") Signed-off-by: YueHaibing Signed-off-by: David S. Miller --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index ff22f274aa43d..90bddca1ddd81 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -3543,15 +3543,6 @@ static void stmmac_rx_vlan(struct net_device *dev, struct sk_buff *skb) } } - -static inline int stmmac_rx_threshold_count(struct stmmac_rx_queue *rx_q) -{ - if (rx_q->rx_zeroc_thresh < STMMAC_RX_THRESH) - return 0; - - return 1; -} - /** * stmmac_rx_refill - refill used skb preallocated buffers * @priv: driver private structure -- 2.39.5