Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c197922f authored by Geliang Tang's avatar Geliang Tang Committed by Michael Ellerman
Browse files

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: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 7505a13f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);