Skip to content

Commit

Permalink
perf test: Fix return values checking
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Han Pingtian authored and Arnaldo Carvalho de Melo committed Jan 28, 2011
1 parent 3c42258 commit 54489c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/perf/builtin-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@ static int test__basic_mmap(void)
}

cpus = cpu_map__new(NULL);
if (threads == NULL) {
pr_debug("thread_map__new\n");
if (cpus == NULL) {
pr_debug("cpu_map__new\n");
goto out_free_threads;
}

Expand All @@ -510,7 +510,7 @@ static int test__basic_mmap(void)
}

evlist = perf_evlist__new();
if (threads == NULL) {
if (evlist == NULL) {
pr_debug("perf_evlist__new\n");
goto out_free_cpus;
}
Expand Down

0 comments on commit 54489c1

Please sign in to comment.