Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122565
b: refs/heads/master
c: 512bb43
h: refs/heads/master
i:
  122563: 5213fef
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Dec 10, 2008
1 parent f39d3ab commit a4ad677
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b5c0077e1615bb16e777a10ec1fc1195ba059ac
refs/heads/master: 512bb43eb5422ee69a1be05ea0d89dc074fac9a2
10 changes: 5 additions & 5 deletions trunk/net/sched/sch_htb.c
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ static struct htb_class *htb_lookup_leaf(struct rb_root *tree, int prio,
u32 *pid;
} stk[TC_HTB_MAXDEPTH], *sp = stk;

WARN_ON(!tree->rb_node);
BUG_ON(!tree->rb_node);
sp->root = tree->rb_node;
sp->pptr = pptr;
sp->pid = pid;
Expand All @@ -746,9 +746,10 @@ static struct htb_class *htb_lookup_leaf(struct rb_root *tree, int prio,
*sp->pptr = (*sp->pptr)->rb_left;
if (sp > stk) {
sp--;
WARN_ON(!*sp->pptr);
if (!*sp->pptr)
if (!*sp->pptr) {
WARN_ON(1);
return NULL;
}
htb_next_rb_node(sp->pptr);
}
} else {
Expand Down Expand Up @@ -779,8 +780,7 @@ static struct sk_buff *htb_dequeue_tree(struct htb_sched *q, int prio,

do {
next:
WARN_ON(!cl);
if (!cl)
if (unlikely(!cl))
return NULL;

/* class can be empty - it is unlikely but can be true if leaf
Expand Down

0 comments on commit a4ad677

Please sign in to comment.