1
0
Fork 0

powerpc/perf/24x7: 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: Michael Ellerman <mpe@ellerman.id.au>
alistair/sunxi64-5.4-dsi
Geliang Tang 2016-12-20 22:02:17 +08:00 committed by Michael Ellerman
parent 7505a13f85
commit c197922f0a
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ static int event_uniq_add(struct rb_root *root, const char *name, int nl,
struct event_uniq *it;
int result;
it = container_of(*new, struct event_uniq, node);
it = rb_entry(*new, struct event_uniq, node);
result = ev_uniq_ord(name, nl, domain, it->name, it->nl,
it->domain);