summaryrefslogtreecommitdiff
path: root/tools/perf/util/parse-regs-options.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/parse-regs-options.c')
-rw-r--r--tools/perf/util/parse-regs-options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/parse-regs-options.c b/tools/perf/util/parse-regs-options.c
index 4f2c1c255d81..a8865d1c3e81 100644
--- a/tools/perf/util/parse-regs-options.c
+++ b/tools/perf/util/parse-regs-options.c
@@ -40,7 +40,7 @@ parse_regs(const struct option *opt, const char *str, int unset)
}
fputc('\n', stderr);
/* just printing available regs */
- return -1;
+ goto error;
}
for (r = sample_reg_masks; r->name; r++) {
if (!strcasecmp(s, r->name))