[PATCH net-next] net/sched: Remove unused inline helper qdisc_from_priv()

Yue Haibing posted 1 patch 3 months, 2 weeks ago
include/net/pkt_sched.h | 5 -----
1 file changed, 5 deletions(-)
[PATCH net-next] net/sched: Remove unused inline helper qdisc_from_priv()
Posted by Yue Haibing 3 months, 2 weeks ago
Since commit fb38306ceb9e ("net/sched: Retire ATM qdisc"), this is
not used and can be removed.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
 include/net/pkt_sched.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h
index 8a75c73fc555..c660ac871083 100644
--- a/include/net/pkt_sched.h
+++ b/include/net/pkt_sched.h
@@ -25,11 +25,6 @@ struct qdisc_walker {
 		 const struct Qdisc * : (const void *)&q->privdata,	\
 		 struct Qdisc * : (void *)&q->privdata)
 
-static inline struct Qdisc *qdisc_from_priv(void *priv)
-{
-	return container_of(priv, struct Qdisc, privdata);
-}
-
 /* 
    Timer resolution MUST BE < 10% of min_schedulable_packet_size/bandwidth
    
-- 
2.34.1