pkt_sched: sch_htb: Remove htb_class aprio field
Subsystems (3)
PATCH 1/3 pkt_sched: sch_htb: Remove htb_class aprio field
Remove practically unused struct htb_class aprio field.
Signed-off-by Jarek Poplawski <[email protected]>
--- net/sched/sch_htb.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
net/sched/sch_htb.c +2 -3
@@ -88,7 +88,6 @@ struct htb_class {struct htb_class_leaf {struct Qdisc *q;int prio; -int aprio;int quantum;int deficit[TC_HTB_MAXDEPTH ];struct list_head drop_list;
@@ -527,10 +526,10 @@ static inline void htb_activate(struct htb_sched *q, struct htb_class *cl)WARN_ON (cl->level || !cl->un.leaf.q || !cl->un.leaf.q->q.qlen);if (!cl->prio_activity) { - cl->prio_activity =1 << (cl->un.leaf.aprio = cl->un.leaf.prio); + cl->prio_activity =1 << cl->un.leaf.prio;htb_activate_prios (q, cl);list_add_tail (&cl->un.leaf.drop_list, - q->drops + cl->un.leaf.aprio); + q->drops + cl->un.leaf.prio); } }
Signature · 1 line
1.5.6.5
From: Jarek Poplawski <[email protected]>
Date: Tue, 2 Dec 2008 08:56:22 +0000
Quoted 3 lines
Remove practically unused struct
htb_classaprio field.Signed-off-by Jarek Poplawski <[email protected]>
Applied.