aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYisheng Xie <[email protected]>2018-03-13 20:31:14 +0800
committerArnaldo Carvalho de Melo <[email protected]>2018-03-16 16:39:02 -0300
commita08f6dd4190e90dc7b013435acb66770f117e8b0 (patch)
treeb4610fa2cde01b5f387cac5804ebf5e8524c1c47
parent699db111058798bcc9f92a93767062905a561bef (diff)
perf debug: Avoid setting 'quiet' to 'true' unnecessarily
When using --quiet to disable messages, we will set the 'quiet' variable to 'true' first, then check that variable to decide whether we need to call perf_quiet_option(), so no need to set 'quiet' to 'true' once more in perf_quiet_option(). Signed-off-by: Yisheng Xie <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r--tools/perf/util/debug.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/perf/util/debug.c b/tools/perf/util/debug.c
index f3a71db83947..3d6459626c2a 100644
--- a/tools/perf/util/debug.c
+++ b/tools/perf/util/debug.c
@@ -232,7 +232,6 @@ int perf_quiet_option(void)
var++;
}
- quiet = true;
return 0;
}