sch_tbf: Remove bogus semicolon in if() conditional.
authorDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 07:00:03 +0000 (00:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 07:00:03 +0000 (00:00 -0700)
Fixes: 49b499718fa1 ("net: sched: make default fifo qdiscs appear in the dump")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_tbf.c

index 40c29a801391c33b4c1633befe9aa9a9a506b2f2..9850126129a378d46105d0535fde46e0a7f1a9c4 100644 (file)
@@ -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;