diff mbox series

[net-next] net: stmmac: Remove unused inline function stmmac_rx_threshold_count

Message ID 20200505084256.52048-1-yuehaibing@huawei.com (mailing list archive)
State Mainlined
Commit d66e67bd4cc76626253bd51ee034bbbaede4e9ba
Headers show
Series [net-next] net: stmmac: Remove unused inline function stmmac_rx_threshold_count | expand

Commit Message

Yue Haibing May 5, 2020, 8:42 a.m. UTC
There's no caller in-tree since
commit 2af6106ae949 ("net: stmmac: Introducing support for Page Pool")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 9 ---------
 1 file changed, 9 deletions(-)

Comments

David Miller May 5, 2020, 7:46 p.m. UTC | #1
From: YueHaibing <yuehaibing@huawei.com>
Date: Tue, 5 May 2020 16:42:56 +0800

> There's no caller in-tree since
> commit 2af6106ae949 ("net: stmmac: Introducing support for Page Pool")
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Applied.
diff mbox series

Patch

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index ff22f274aa43..90bddca1ddd8 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