Skip to content

Commit

Permalink
net: stmmac: Remove unused inline function stmmac_rx_threshold_count
Browse files Browse the repository at this point in the history
There's no caller in-tree since
commit 2af6106 ("net: stmmac: Introducing support for Page Pool")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
YueHaibing authored and David S. Miller committed May 5, 2020
1 parent 12dcceb commit d66e67b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d66e67b

Please sign in to comment.