[PATCH v2 -perf/core 2/2] perf debug: Avoid set quiet once more
From: Yisheng Xie
Date: Tue Mar 13 2018 - 08:41:28 EST
When use --quiet to disable log, we will set quiet first, then check the
quiet to decide whether need to call perf_quiet_option, so no need to set
the quiet once more.
Signed-off-by: Yisheng Xie <xieyisheng1@xxxxxxxxxx>
---
- This is a new add-on patch
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 f3a71db..3d64596 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;
}
--
1.7.12.4