summaryrefslogtreecommitdiff
path: root/tools/perf/util/newt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/newt.c')
-rw-r--r--tools/perf/util/newt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/newt.c b/tools/perf/util/newt.c
index 5ded2f0d3e4d..094887f45d05 100644
--- a/tools/perf/util/newt.c
+++ b/tools/perf/util/newt.c
@@ -892,10 +892,10 @@ int hists__browse(struct hists *self, const char *helpline, const char *input_na
if (choice == -1)
continue;
-do_annotate:
+
if (choice == annotate) {
struct hist_entry *he;
-
+do_annotate:
if (browser->selection->map->dso->origin == DSO__ORIG_KERNEL) {
ui_helpline__puts("No vmlinux file found, can't "
"annotate with just a "