Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4164d661 authored by Jarek Poplawski's avatar Jarek Poplawski Committed by David S. Miller
Browse files

pkt_sched: sch_htb: Remove htb_class aprio field



Remove practically unused struct htb_class aprio field.

Signed-off-by: default avatarJarek Poplawski <jarkao2@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cb52deba
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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);
	}
}