Received: by 10.213.65.68 with SMTP id h4csp163233imn; Mon, 19 Mar 2018 23:36:34 -0700 (PDT) X-Google-Smtp-Source: AG47ELtfGP6vv1IojJ/kGnXMO4Ya2guCUFaipYVh3EFlUzLPohekeq5uiy0Z+/BDiZYCTu5aTEzE X-Received: by 2002:a17:902:9308:: with SMTP id bc8-v6mr11363580plb.189.1521527794156; Mon, 19 Mar 2018 23:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521527794; cv=none; d=google.com; s=arc-20160816; b=hhH/2lwdPyCEqnRTzZ37YymlbRS2/510LEPLpM9rtPiQjVFVGnHxzxXGXEvXrAAqe2 YgNktNtMw6MeptQW4GOA8Ya3e30JpF+rvsEkeVIXIJHybEKyKexJLmFNek29TnmT7jD3 IvYXoF7iwEedYEj4DRQb6i+LSeF3Hd640SxxYI/0EavtlYNXLm3g1oQ2yucPruhUhwTY +3kWKJqUijyr1TpUJxYb3Kp5qmjHBgfutiCk4W2cTzivf77o+PppT8dYbeNIpYWxHG8I RpH30Kf+cB2i58OkNLZ3sarTo06fGLntCaFmj75TXKV0eQ/KACmASfqAZfpy78Tc214q SdEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=i5OL11ZWES5fVUYc+4Ljuy+v/ZhtKVNMEasEz6qoJTw=; b=j4gJdjbgOLjemK6L4Gf+7dyG1/8VWKn9+F0erzpgEgjnvuIn5gwcQnhO8yGTsflrbQ Yjg+/8NrBgZ+CEFmv8Bb+hR2ayPPCeu4u1vt6a6oesTgzLdlqeVH+SDzPhhsQ4lP9AEp ma/ECbnipErI71ANBasBTuhxYE6noowOeaWSwpK0P/Rj7GbuSGmrqbJrx1jksH6tez7l JTfR24AQDn0PjJnYCS/6TldEXBiRooTshEPdbk/vUlftclJf6pFfoBO+bMAH/hPcxRt6 8f2S1Vut8Ymhf4R83DMkq610bA7nCyhFk5njWEcI3VjWv1fom8AB27FR6X+zyOs+WPe7 z+aA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i23-v6si264139pll.251.2018.03.19.23.36.20; Mon, 19 Mar 2018 23:36:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752213AbeCTGf0 (ORCPT + 99 others); Tue, 20 Mar 2018 02:35:26 -0400 Received: from terminus.zytor.com ([198.137.202.136]:50091 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751497AbeCTGfV (ORCPT ); Tue, 20 Mar 2018 02:35:21 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w2K6XxJs031770; Mon, 19 Mar 2018 23:33:59 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w2K6XwGt031765; Mon, 19 Mar 2018 23:33:58 -0700 Date: Mon, 19 Mar 2018 23:33:58 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Yisheng Xie Message-ID: Cc: linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, mingo@kernel.org, hpa@zytor.com, tglx@linutronix.de, kan.liang@linux.intel.com, acme@redhat.com, xieyisheng1@huawei.com, peterz@infradead.org Reply-To: tglx@linutronix.de, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, namhyung@kernel.org, jolsa@redhat.com, peterz@infradead.org, xieyisheng1@huawei.com, acme@redhat.com, kan.liang@linux.intel.com In-Reply-To: <1520944274-37001-2-git-send-email-xieyisheng1@huawei.com> References: <1520944274-37001-2-git-send-email-xieyisheng1@huawei.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf debug: Avoid setting 'quiet' to 'true' unnecessarily Git-Commit-ID: a08f6dd4190e90dc7b013435acb66770f117e8b0 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: a08f6dd4190e90dc7b013435acb66770f117e8b0 Gitweb: https://git.kernel.org/tip/a08f6dd4190e90dc7b013435acb66770f117e8b0 Author: Yisheng Xie AuthorDate: Tue, 13 Mar 2018 20:31:14 +0800 Committer: Arnaldo Carvalho de Melo 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 Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Kan Liang Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1520944274-37001-2-git-send-email-xieyisheng1@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- 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; }