diff options
author | Geliang Tang <geliangtang@gmail.com> | 2016-12-20 17:02:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-20 22:22:48 +0300 |
commit | 7f7cd56c33937c6afa8a3d1f10a804c314e5b308 (patch) | |
tree | d0f9272c6f66c75202906e5c65732d63e8b6c3ea /net/sched | |
parent | e124557d60ccefacbda79934af816526cc08aeb7 (diff) | |
download | linux-7f7cd56c33937c6afa8a3d1f10a804c314e5b308.tar.xz |
net_sched: sch_netem: use rb_entry()
To make the code clearer, use rb_entry() instead of container_of() to
deal with rbtree.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_netem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index 9f7b380cf0a3..b7e4097bfdab 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c @@ -152,7 +152,7 @@ struct netem_skb_cb { static struct sk_buff *netem_rb_to_skb(struct rb_node *rb) { - return container_of(rb, struct sk_buff, rbnode); + return rb_entry(rb, struct sk_buff, rbnode); } static inline struct netem_skb_cb *netem_skb_cb(struct sk_buff *skb) |