aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorHan Pingtian <phan@redhat.com>2011-01-24 18:39:00 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-01-28 06:21:19 -0500
commit54489c189b1a0c10eaf21c6d2c5916b50442c871 (patch)
tree8b612439f021de6c68a756f482ae2d3ee36b97ac /tools
parent3c42258c9a4db70133fa6946a275b62a16792bb5 (diff)
perf test: Fix return values checking
Fixing some cut'n'paste mistakes. LKML-Reference: <20110124233900.GA3443@epc900.nay.redhat.com> Signed-off-by: Han Pingtian <phan@redhat.com> [ committer note: I had already removed the CPU_ALLOC calls ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c
index 231e3e21810c..738830d298e8 100644
--- a/tools/perf/builtin-test.c
+++ b/tools/perf/builtin-test.c
@@ -495,8 +495,8 @@ static int test__basic_mmap(void)
495 } 495 }
496 496
497 cpus = cpu_map__new(NULL); 497 cpus = cpu_map__new(NULL);
498 if (threads == NULL) { 498 if (cpus == NULL) {
499 pr_debug("thread_map__new\n"); 499 pr_debug("cpu_map__new\n");
500 goto out_free_threads; 500 goto out_free_threads;
501 } 501 }
502 502
@@ -510,7 +510,7 @@ static int test__basic_mmap(void)
510 } 510 }
511 511
512 evlist = perf_evlist__new(); 512 evlist = perf_evlist__new();
513 if (threads == NULL) { 513 if (evlist == NULL) {
514 pr_debug("perf_evlist__new\n"); 514 pr_debug("perf_evlist__new\n");
515 goto out_free_cpus; 515 goto out_free_cpus;
516 } 516 }