aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/setup.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2019-08-13 15:07:14 +0000
committerArnaldo Carvalho de Melo <[email protected]>2019-08-14 14:00:00 +0000
commit1cd8fa288eb83c1fe0dfa492b09d228a8d802fbf (patch)
treee892580504b082e9852f5925ba66d1e22910f5e8 /tools/perf/ui/setup.c
parentperf record: Support aarch64 random socket_id assignment (diff)
downloadkernel-1cd8fa288eb83c1fe0dfa492b09d228a8d802fbf.tar.gz
kernel-1cd8fa288eb83c1fe0dfa492b09d228a8d802fbf.zip
perf ui: No need to set ui_browser to 1 twice
We need to do it only when fallbacking from GTK to the TUI. Cc: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/ui/setup.c')
-rw-r--r--tools/perf/ui/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/ui/setup.c b/tools/perf/ui/setup.c
index 44fe824e96cd..3bc7c9a6fae9 100644
--- a/tools/perf/ui/setup.c
+++ b/tools/perf/ui/setup.c
@@ -89,9 +89,9 @@ void setup_browser(bool fallback_to_pager)
printf("GTK browser requested but could not find %s\n",
PERF_GTK_DSO);
sleep(1);
+ use_browser = 1;
/* fall through */
case 1:
- use_browser = 1;
if (ui__init() == 0)
break;
/* fall through */