summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_tbf.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-03-13 00:00:03 -0700
committerDavid S. Miller <davem@davemloft.net>2017-03-13 00:00:03 -0700
commite33cc31630c3ca1de47c2470ec8d41dee0683b11 (patch)
treeaae22ef6cdaa873abb3bef9ebe05c109078eced3 /net/sched/sch_tbf.c
parent1bcf165ac6556dc55a596d524b8187d1ba7a8c7d (diff)
downloadlinux-e33cc31630c3ca1de47c2470ec8d41dee0683b11.tar.bz2
sch_tbf: Remove bogus semicolon in if() conditional.
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>
Diffstat (limited to 'net/sched/sch_tbf.c')
-rw-r--r--net/sched/sch_tbf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_tbf.c b/net/sched/sch_tbf.c
index 40c29a801391..9850126129a3 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;