Commit cbd183c5 authored by Markus Trippelsdorf's avatar Markus Trippelsdorf Committed by Ben Hutchings

perf annotate browser: Fix behaviour of Shift-Tab with nothing focussed

commit d4913cbd upstream.

The issue was pointed out by gcc-6's -Wmisleading-indentation.
Signed-off-by: default avatarMarkus Trippelsdorf <markus@trippelsdorf.de>
Acked-by: default avatarIngo Molnar <mingo@kernel.org>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Fixes: c97cf422 ("perf top: Live TUI Annotation")
Link: http://lkml.kernel.org/r/20151214154403.GB1409@x4Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
[bwh: Backported to 3.2: adjust filename, context]
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent e27ea5ee
...@@ -276,11 +276,11 @@ static int annotate_browser__run(struct annotate_browser *self, int evidx, ...@@ -276,11 +276,11 @@ static int annotate_browser__run(struct annotate_browser *self, int evidx,
nd = self->curr_hot; nd = self->curr_hot;
break; break;
case K_UNTAB: case K_UNTAB:
if (nd != NULL) if (nd != NULL) {
nd = rb_next(nd); nd = rb_next(nd);
if (nd == NULL) if (nd == NULL)
nd = rb_first(&self->entries); nd = rb_first(&self->entries);
else } else
nd = self->curr_hot; nd = self->curr_hot;
break; break;
case 'H': case 'H':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment