summaryrefslogtreecommitdiff
path: root/tools/perf/ui
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-08-13 18:07:14 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-08-14 17:00:00 +0300
commit1cd8fa288eb83c1fe0dfa492b09d228a8d802fbf (patch)
treee892580504b082e9852f5925ba66d1e22910f5e8 /tools/perf/ui
parent0a4d8fb229dd78f9e0752817339e19e903b37a60 (diff)
downloadlinux-1cd8fa288eb83c1fe0dfa492b09d228a8d802fbf.tar.xz
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 <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-dda0acxqef1k72n9z4myjbjt@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui')
-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 */