Commit 4488343a authored by David S. Miller's avatar David S. Miller

[NET]: Unlink qdiscs in qdisc_destroy even when CONFIG_NET_SCHED is not enabled.

parent 0de0388a
......@@ -416,7 +416,6 @@ void qdisc_destroy(struct Qdisc *qdisc)
dev = qdisc->dev;
#ifdef CONFIG_NET_SCHED
if (dev) {
struct Qdisc *q, **qp;
for (qp = &qdisc->dev->qdisc_list; (q=*qp) != NULL; qp = &q->next) {
......@@ -428,7 +427,6 @@ void qdisc_destroy(struct Qdisc *qdisc)
}
#ifdef CONFIG_NET_ESTIMATOR
qdisc_kill_estimator(&qdisc->stats);
#endif
#endif
if (ops->reset)
ops->reset(qdisc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment