]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/sched/sch_sfb.c
net: sched: drop all special handling of tx_queue_len == 0
[karo-tx-linux.git] / net / sched / sch_sfb.c
index 4b815193326c9abae464c05d53609c28c2071b38..dcdff5c769a1c28e6ea476ce822c8fbe74f9fc53 100644 (file)
@@ -502,7 +502,7 @@ static int sfb_change(struct Qdisc *sch, struct nlattr *opt)
 
        limit = ctl->limit;
        if (limit == 0)
-               limit = max_t(u32, qdisc_dev(sch)->tx_queue_len, 1);
+               limit = qdisc_dev(sch)->tx_queue_len;
 
        child = fifo_create_dflt(sch, &pfifo_qdisc_ops, limit);
        if (IS_ERR(child))