Received: by 10.223.185.116 with SMTP id b49csp1019345wrg; Fri, 16 Feb 2018 10:56:10 -0800 (PST) X-Google-Smtp-Source: AH8x227ch61f0CanLJUR/oWrvmnBU571yJTSL/3qR9Ts2vejhBPBitUpGgVsMdSUA/WGlQ+RVVPd X-Received: by 10.98.102.89 with SMTP id a86mr6998643pfc.121.1518807370822; Fri, 16 Feb 2018 10:56:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518807370; cv=none; d=google.com; s=arc-20160816; b=imbzvXN+re5OpOLjArFss9XF/OZ3ViWOOESbNOA2m6qvgiy4oKxZv3c6vymNtdpgvd C52Sf0IY0WjPpd9NIbaqAplOPQyTpUPQ8X7R8Jpt33PnzaF0SrMBF1f7lFGeDAqyoPc8 GBK3MuX0Rz6zwuwnmYcpgZYNOY0N5kQF5udHggU11X12cJIIWHlAXZxhYfxtZq2Ju+af 5aOsk0BEGXNCK4b+Wz9EKGfdB57EyNSRa9cLEUl/T2q9gufHmAyUP+/4jnXRrDomC5Im OeCwCCNuXzBX4tnPZjhy0kP97pFEN9m3sENHHMDouLQFuVtw2MjmPW6xOsqR/URxN+bQ z1+Q== 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=lYQ+vaK0TWsbl3y73f07m7BwqaW6K9nFC+x77cNPHc8=; b=KF0fmSqmuh03dKObL/hk9muGa5fLyXJV+RMr9ACfRIudE/b7HRovhtPsDVbae8CmZh V8NudFII1mV+QKD2v+fd3V05YHjcmDJtoGm0C3lCr/vaEk8ZQgI7JbX5IMVscDuBdRUH 80iXqbJszZRSd2z4JDe+Nvd5ss2xSoofhZyfbTxNWxReDDtexvKwOin8Hz1bpol1sIdp DGG3kwB9UJfUvEazJI4sUCePKoJjKGyWCnOE+HwWQ0jLcY/e0h0x5apDhMa0qsNOWmcZ k4es0LujYoTMGHERH3ILXb/uZsh17eJCzcpe+4iQNo6VFboLM6AM7r0hTRFGc2wNHqeG CvYQ== 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 v1si7998889pfg.288.2018.02.16.10.55.56; Fri, 16 Feb 2018 10:56:10 -0800 (PST) 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 S932754AbeBPJvV (ORCPT + 99 others); Fri, 16 Feb 2018 04:51:21 -0500 Received: from terminus.zytor.com ([198.137.202.136]:58777 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932716AbeBPJvF (ORCPT ); Fri, 16 Feb 2018 04:51:05 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w1G9ZOtT021418; Fri, 16 Feb 2018 01:35:24 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w1G9ZMIT021415; Fri, 16 Feb 2018 01:35:22 -0800 Date: Fri, 16 Feb 2018 01:35:22 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Kan Liang Message-ID: Cc: peterz@infradead.org, mingo@kernel.org, kan.liang@intel.com, linux-kernel@vger.kernel.org, yao.jin@linux.intel.com, ak@linux.intel.com, jolsa@kernel.org, hpa@zytor.com, wangnan0@huawei.com, acme@redhat.com, namhyung@kernel.org, tglx@linutronix.de Reply-To: mingo@kernel.org, kan.liang@intel.com, linux-kernel@vger.kernel.org, peterz@infradead.org, wangnan0@huawei.com, hpa@zytor.com, acme@redhat.com, tglx@linutronix.de, namhyung@kernel.org, ak@linux.intel.com, yao.jin@linux.intel.com, jolsa@kernel.org In-Reply-To: <1516310792-208685-4-git-send-email-kan.liang@intel.com> References: <1516310792-208685-4-git-send-email-kan.liang@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf mmap: Cleanup perf_mmap__push() Git-Commit-ID: f92c8cbe597a5a2ccec702dff824f3fe0f3623eb 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: f92c8cbe597a5a2ccec702dff824f3fe0f3623eb Gitweb: https://git.kernel.org/tip/f92c8cbe597a5a2ccec702dff824f3fe0f3623eb Author: Kan Liang AuthorDate: Thu, 18 Jan 2018 13:26:18 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 15 Feb 2018 09:52:05 -0300 perf mmap: Cleanup perf_mmap__push() The first assignment for 'start' and 'end' is redundant. Signed-off-by: Kan Liang Acked-by: Jiri Olsa Cc: Andi Kleen Cc: Jin Yao Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Wang Nan Link: http://lkml.kernel.org/r/1516310792-208685-4-git-send-email-kan.liang@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/mmap.c b/tools/perf/util/mmap.c index 97cf4fa..fbbbe87 100644 --- a/tools/perf/util/mmap.c +++ b/tools/perf/util/mmap.c @@ -272,7 +272,7 @@ int perf_mmap__push(struct perf_mmap *md, bool overwrite, { u64 head = perf_mmap__read_head(md); u64 old = md->prev; - u64 end = head, start = old; + u64 end, start; unsigned char *data = md->base + page_size; unsigned long size; void *buf;