mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 09:50:04 +00:00
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>
This commit is contained in:
parent
3c42258c9a
commit
54489c189b
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue