Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40803
b: refs/heads/master
c: da33e3e
h: refs/heads/master
i:
  40801: 126a590
  40799: 7a80950
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Nov 7, 2006
1 parent 7f4b11f commit a799d92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 9e950efa20dc8037c27509666cba6999da9368e8
refs/heads/master: da33e3eb4876c43b78fdc7b7068653239f28714a
6 changes: 2 additions & 4 deletions trunk/net/sched/sch_htb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1284,8 +1284,7 @@ static void htb_destroy_class(struct Qdisc *sch, struct htb_class *cl)
struct htb_class, sibling));

/* note: this delete may happen twice (see htb_delete) */
if (!hlist_unhashed(&cl->hlist))
hlist_del(&cl->hlist);
hlist_del_init(&cl->hlist);
list_del(&cl->sibling);

if (cl->prio_activity)
Expand Down Expand Up @@ -1333,8 +1332,7 @@ static int htb_delete(struct Qdisc *sch, unsigned long arg)
sch_tree_lock(sch);

/* delete from hash and active; remainder in destroy_class */
if (!hlist_unhashed(&cl->hlist))
hlist_del(&cl->hlist);
hlist_del_init(&cl->hlist);

if (cl->prio_activity)
htb_deactivate(q, cl);
Expand Down

0 comments on commit a799d92

Please sign in to comment.