perf hists browser: replace rb_first() != NULL by !RB_EMPTY_ROOT()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Aug 2010 19:05:36 +0000 (16:05 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Aug 2010 19:05:36 +0000 (16:05 -0300)
commit293db47f4753f5746e5aaa998ceb24dff662cf7e
tree6a16cc0521a1e2a142b589865a27b3a886f14421
parent18b308d7994e0e2a360b979f159fa7d2b91a26b1
perf hists browser: replace rb_first() != NULL by !RB_EMPTY_ROOT()

Its way too stupid to use rb_first() for just caching if there are
children, use the cheaper RB_EMPTY_ROOT() instead.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/browsers/hists.c