aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorJarek Poplawski <jarkao2@gmail.com>2008-12-04 00:08:44 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-04 00:08:44 -0500
commit4164d661b8c9602fbbf651a33377d2c51f68c451 (patch)
treeaa96141c71024d045a52baaabf28e9cd5b622671 /net/sched
parentcb52deba12f27af90a46d2f8667a64888118a888 (diff)
pkt_sched: sch_htb: Remove htb_class aprio field
Remove practically unused struct htb_class aprio field. Signed-off-by: Jarek Poplawski <jarkao2@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/sch_htb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c
index 8a4519989732..ce8b1ade8376 100644
--- a/net/sched/sch_htb.c
+++ b/net/sched/sch_htb.c
@@ -88,7 +88,6 @@ struct htb_class {
88 struct htb_class_leaf { 88 struct htb_class_leaf {
89 struct Qdisc *q; 89 struct Qdisc *q;
90 int prio; 90 int prio;
91 int aprio;
92 int quantum; 91 int quantum;
93 int deficit[TC_HTB_MAXDEPTH]; 92 int deficit[TC_HTB_MAXDEPTH];
94 struct list_head drop_list; 93 struct list_head drop_list;
@@ -527,10 +526,10 @@ static inline void htb_activate(struct htb_sched *q, struct htb_class *cl)
527 WARN_ON(cl->level || !cl->un.leaf.q || !cl->un.leaf.q->q.qlen); 526 WARN_ON(cl->level || !cl->un.leaf.q || !cl->un.leaf.q->q.qlen);
528 527
529 if (!cl->prio_activity) { 528 if (!cl->prio_activity) {
530 cl->prio_activity = 1 << (cl->un.leaf.aprio = cl->un.leaf.prio); 529 cl->prio_activity = 1 << cl->un.leaf.prio;
531 htb_activate_prios(q, cl); 530 htb_activate_prios(q, cl);
532 list_add_tail(&cl->un.leaf.drop_list, 531 list_add_tail(&cl->un.leaf.drop_list,
533 q->drops + cl->un.leaf.aprio); 532 q->drops + cl->un.leaf.prio);
534 } 533 }
535} 534}
536 535