diff --git a/tools/perf/util/pager.c b/tools/perf/util/pager.c index 53ef006a951c3f3c90ce8c62e9a5cd73b7750a74..7dcbef64b6092b7c3dc38daefbeba01e71f237d7 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; }