Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1317976 > unrolled thread

[PATCH 2/4] perf annotate browser: Fix behaviour of Shift-Tab with nothing focussed

Started byArnaldo Carvalho de Melo <acme@kernel.org>
First post2016-01-26 15:40 +0100
Last post2016-01-26 15:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/4] perf annotate browser: Fix behaviour of Shift-Tab with nothing focussed Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-01-26 15:40 +0100

#1317976 — [PATCH 2/4] perf annotate browser: Fix behaviour of Shift-Tab with nothing focussed

FromArnaldo Carvalho de Melo <acme@kernel.org>
Date2016-01-26 15:40 +0100
Subject[PATCH 2/4] perf annotate browser: Fix behaviour of Shift-Tab with nothing focussed
Message-ID<qVcWL-5sj-37@gated-at.bofh.it>
From: Markus Trippelsdorf <markus@trippelsdorf.de>

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: c97cf42219b7 ("perf top: Live TUI Annotation")
Link: http://lkml.kernel.org/r/20151214154403.GB1409@x4
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/ui/browsers/annotate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c
index d4d7cc27252f..718bd46d47fa 100644
--- a/tools/perf/ui/browsers/annotate.c
+++ b/tools/perf/ui/browsers/annotate.c
@@ -755,11 +755,11 @@ static int annotate_browser__run(struct annotate_browser *browser,
 				nd = browser->curr_hot;
 			break;
 		case K_UNTAB:
-			if (nd != NULL)
+			if (nd != NULL) {
 				nd = rb_next(nd);
 				if (nd == NULL)
 					nd = rb_first(&browser->entries);
-			else
+			} else
 				nd = browser->curr_hot;
 			break;
 		case K_F1:
-- 
2.5.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web