提交 54489c18 编写于 作者: H Han Pingtian 提交者: Arnaldo Carvalho de Melo

perf test: Fix return values checking

Fixing some cut'n'paste mistakes.

LKML-Reference: <20110124233900.GA3443@epc900.nay.redhat.com>
Signed-off-by: NHan Pingtian <phan@redhat.com>
[ committer note: I had already removed the CPU_ALLOC calls ]
Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 3c42258c
...@@ -495,8 +495,8 @@ static int test__basic_mmap(void) ...@@ -495,8 +495,8 @@ static int test__basic_mmap(void)
} }
cpus = cpu_map__new(NULL); cpus = cpu_map__new(NULL);
if (threads == NULL) { if (cpus == NULL) {
pr_debug("thread_map__new\n"); pr_debug("cpu_map__new\n");
goto out_free_threads; goto out_free_threads;
} }
...@@ -510,7 +510,7 @@ static int test__basic_mmap(void) ...@@ -510,7 +510,7 @@ static int test__basic_mmap(void)
} }
evlist = perf_evlist__new(); evlist = perf_evlist__new();
if (threads == NULL) { if (evlist == NULL) {
pr_debug("perf_evlist__new\n"); pr_debug("perf_evlist__new\n");
goto out_free_cpus; goto out_free_cpus;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册