diff options
author | Geliang Tang <geliangtang@gmail.com> | 2016-12-20 22:02:17 +0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-07-04 17:09:37 +1000 |
commit | c197922f0a8072d286dff8001f8ad0d4b95ec1dd (patch) | |
tree | 3fcee94ccb864162d659c9c2955117ac91c2dd02 /arch/powerpc/perf | |
parent | 7505a13f85bdcb8713551a067dfc92ac3c7ba902 (diff) | |
download | linux-c197922f0a8072d286dff8001f8ad0d4b95ec1dd.tar.bz2 |
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>
Diffstat (limited to 'arch/powerpc/perf')
-rw-r--r-- | arch/powerpc/perf/hv-24x7.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c index d2b8e6061933..bdeb41b1a6e5 100644 --- a/arch/powerpc/perf/hv-24x7.c +++ b/arch/powerpc/perf/hv-24x7.c @@ -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); |