diff --git a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c index 40c29a801391c33b4c1633befe9aa9a9a506b2f2..9850126129a378d46105d0535fde46e0a7f1a9c4 100644 --- a/net/sched/sch_tbf.c +++ b/net/sched/sch_tbf.c @@ -396,7 +396,7 @@ static int tbf_change(struct Qdisc *sch, struct nlattr *opt) q->qdisc->qstats.backlog); qdisc_destroy(q->qdisc); q->qdisc = child; - if (child != &noop_qdisc); + if (child != &noop_qdisc) qdisc_hash_add(child, true); } q->limit = qopt->limit;