Skip to content

Commit d63ce84

Browse files
BitsByWillgregkh
authored andcommitted
net/sched: Remove unnecessary WARNING condition for empty child qdisc in htb_activate
[ Upstream commit 2c2192e ] The WARN_ON trigger based on !cl->leaf.q->q.qlen is unnecessary in htb_activate. htb_dequeue_tree already accounts for that scenario. Fixes: 1da177e ("Linux-2.6.12-rc2") Signed-off-by: William Liu <will@willsroot.io> Reviewed-by: Savino Dicanosa <savy@syst3mfailure.io> Link: https://patch.msgid.link/20250819033632.579854-1-will@willsroot.io Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 710866f commit d63ce84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/sched/sch_htb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ htb_change_class_mode(struct htb_sched *q, struct htb_class *cl, s64 *diff)
589589
*/
590590
static inline void htb_activate(struct htb_sched *q, struct htb_class *cl)
591591
{
592-
WARN_ON(cl->level || !cl->leaf.q || !cl->leaf.q->q.qlen);
592+
WARN_ON(cl->level || !cl->leaf.q);
593593

594594
if (!cl->prio_activity) {
595595
cl->prio_activity = 1 << cl->prio;

0 commit comments

Comments
 (0)