aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c
index 32caf13cfe01..78b47a75a7c9 100644
--- a/tools/perf/builtin-test.c
+++ b/tools/perf/builtin-test.c
@@ -1233,7 +1233,7 @@ static int perf_evsel__test_field(struct perf_evsel *evsel, const char *name,
1233 ret = -1; 1233 ret = -1;
1234 } 1234 }
1235 1235
1236 return 0; 1236 return ret;
1237} 1237}
1238 1238
1239static int perf_evsel__tp_sched_test(void) 1239static int perf_evsel__tp_sched_test(void)
@@ -1286,7 +1286,7 @@ static int perf_evsel__tp_sched_test(void)
1286 if (perf_evsel__test_field(evsel, "target_cpu", 4, true)) 1286 if (perf_evsel__test_field(evsel, "target_cpu", 4, true))
1287 ret = -1; 1287 ret = -1;
1288 1288
1289 return 0; 1289 return ret;
1290} 1290}
1291 1291
1292static struct test { 1292static struct test {