[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-a08f6dd4190e90dc7b013435acb66770f117e8b0@git.kernel.org>
Date: Mon, 19 Mar 2018 23:33:58 -0700
From: tip-bot for Yisheng Xie <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, alexander.shishkin@...ux.intel.com,
jolsa@...hat.com, namhyung@...nel.org, mingo@...nel.org,
hpa@...or.com, tglx@...utronix.de, kan.liang@...ux.intel.com,
acme@...hat.com, xieyisheng1@...wei.com, peterz@...radead.org
Subject: [tip:perf/core] perf debug: Avoid setting 'quiet' to 'true'
unnecessarily
Commit-ID: a08f6dd4190e90dc7b013435acb66770f117e8b0
Gitweb: https://git.kernel.org/tip/a08f6dd4190e90dc7b013435acb66770f117e8b0
Author: Yisheng Xie <xieyisheng1@...wei.com>
AuthorDate: Tue, 13 Mar 2018 20:31:14 +0800
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Fri, 16 Mar 2018 16:39:02 -0300
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 <xieyisheng1@...wei.com>
Cc: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
Cc: Jiri Olsa <jolsa@...hat.com>
Cc: Kan Liang <kan.liang@...ux.intel.com>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Link: http://lkml.kernel.org/r/1520944274-37001-2-git-send-email-xieyisheng1@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/util/debug.c | 1 -
1 file changed, 1 deletion(-)
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;
}
Powered by blists - more mailing lists