diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_htb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index f89fd71ce92f..b820a0ae7355 100644 --- a/net/sched/sch_htb.c +++ b/net/sched/sch_htb.c | |||
@@ -698,14 +698,14 @@ static struct rb_node *htb_id_find_next_upper(int prio, struct rb_node *n, | |||
698 | while (n) { | 698 | while (n) { |
699 | struct htb_class *cl = | 699 | struct htb_class *cl = |
700 | rb_entry(n, struct htb_class, node[prio]); | 700 | rb_entry(n, struct htb_class, node[prio]); |
701 | if (id == cl->common.classid) | ||
702 | return n; | ||
703 | 701 | ||
704 | if (id > cl->common.classid) { | 702 | if (id > cl->common.classid) { |
705 | n = n->rb_right; | 703 | n = n->rb_right; |
706 | } else { | 704 | } else if (id < cl->common.classid) { |
707 | r = n; | 705 | r = n; |
708 | n = n->rb_left; | 706 | n = n->rb_left; |
707 | } else { | ||
708 | return n; | ||
709 | } | 709 | } |
710 | } | 710 | } |
711 | return r; | 711 | return r; |