perf newt: Use newtAddComponent()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 May 2010 13:51:25 +0000 (10:51 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 10 May 2010 13:51:25 +0000 (10:51 -0300)
commit7f8264539c62378cccbdf9b598927b034bef4a92
treed8ffc9d666e306b78f5023b5b4ded3d6174583d8
parent1f0ac7183f4d270bd9ce511254ba5d931d4f29c9
perf newt: Use newtAddComponent()

Instead of newtAddComponents(just-one-entry, NULL), that is not needed
if, like in this browser, we're adding just one component at a time.

Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/newt.c