diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2015-12-13 22:18:08 -0600 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-12-14 12:30:18 -0300 |
commit | a871a775172ac586b76199fd158e2843971bd052 (patch) | |
tree | c3da2854a2d8bc66a31569beb2c66d8e0862b265 /tools/perf/util/pager.c | |
parent | 32a56bd438ab3023d08874e2770aa0675364b8ab (diff) | |
download | linux-a871a775172ac586b76199fd158e2843971bd052.tar.bz2 |
perf tools: Remove check for unused PERF_PAGER_IN_USE
PERF_PAGER_IN_USE doesn't seem to be used anywhere, so let's remove it.
This will also make it easier to move pager.c into a separate library.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/ed9e8370db9811746dc590544cf48c36dcfb1731.1449965119.git.jpoimboe@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/pager.c')
-rw-r--r-- | tools/perf/util/pager.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/perf/util/pager.c b/tools/perf/util/pager.c index 53ef006a951c..7dcbef64b609 100644 --- a/tools/perf/util/pager.c +++ b/tools/perf/util/pager.c @@ -85,11 +85,5 @@ void setup_pager(void) int pager_in_use(void) { - const char *env; - - if (spawned_pager) - return 1; - - env = getenv("PERF_PAGER_IN_USE"); - return env ? perf_config_bool("PERF_PAGER_IN_USE", env) : 0; + return spawned_pager; } |