perf annotate browser: Fix behaviour of Shift-Tab with nothing focussed
commitd4913cbd05
upstream. The issue was pointed out by gcc-6's -Wmisleading-indentation. Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de> Acked-by: Ingo 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:c97cf42219
("perf top: Live TUI Annotation") Link: http://lkml.kernel.org/r/20151214154403.GB1409@x4 Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0717b5dfab
commit
0ba2f070bf
@ -755,11 +755,11 @@ static int annotate_browser__run(struct annotate_browser *browser,
|
|||||||
nd = browser->curr_hot;
|
nd = browser->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(&browser->entries);
|
nd = rb_first(&browser->entries);
|
||||||
else
|
} else
|
||||||
nd = browser->curr_hot;
|
nd = browser->curr_hot;
|
||||||
break;
|
break;
|
||||||
case K_F1:
|
case K_F1:
|
||||||
|
Reference in New Issue
Block a user