Received: by 10.223.185.116 with SMTP id b49csp3556832wrg; Tue, 13 Feb 2018 04:16:54 -0800 (PST) X-Google-Smtp-Source: AH8x227xYYS6X/MYJuauFOMdowZSwx9kQcvODtnxym1kgcPx1/CoQ6Tv+Hw9MQ+wYmZEsltOFP5q X-Received: by 2002:a17:902:4a0c:: with SMTP id w12-v6mr979997pld.17.1518524214265; Tue, 13 Feb 2018 04:16:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518524214; cv=none; d=google.com; s=arc-20160816; b=ne0HC/Dh0GCmNsJoSEaFMiJ8n+VdIAI0M2/aYXR8IBypmSpephlEA5w4+9TBGejwJV Nl6gedDuTQdrQDh38WCrMQIApqwAPGA9e/MfjKJZCmTqnR2fSJjbQNp/5c/jUNRP4M60 XNRrLxfUyVeT16TcW/5D+KYWCQ0a17pff/P8rsQbLqn/3a55KVq25ED8Hi9iFUvl0/WD nMqQK03Oq3HUtGTpytkf1/69HlfWxE0/HFuYSxPD75Av/f/0qs9rv4BERzGa42m6mtN5 2QYf35R4spfDMEKDMLJjuHh3IKie5tpuG/MDyi0z5wssGGBgJZYZPwxFwwht7pwCFkGv 4Bkg== 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=ps4ul22Cf0hLei83jUBrZ5MLM23inwkSHsZdzzX5S5I=; b=zBPltIT+8PAc+5CZPAdspm3HrraGoSjPjlRWma0viRkAWA0dL3cqZVumAHpr+r+cIv LJVAvc59gvf54mVyk22UyUf9iYX/q7BSHd8LpH2loBepuriR9yNNG+PJLawRSPobwMQD E22q+xM3k7kUCGbNj1Ct/vUefo4P4N8uJi0YevJ0k2DkJesndCo1i3pylZAmxn79yq1P Rws3258yQ/SFJzkg5DbcE0AdTX9KdUCUwyAqI2kG/BwL4sz1On5jxt2674Uq7OZ9nrAw nrNmNJJISxNDvkQbh9iZgRLP6dSlS/CkMNZ6QYjihyhgqe7+sa5gIuvksQVOTb8vZgg1 sRyw== 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 s13-v6si7152797plp.787.2018.02.13.04.16.39; Tue, 13 Feb 2018 04:16:54 -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 S935138AbeBMMPm (ORCPT + 99 others); Tue, 13 Feb 2018 07:15:42 -0500 Received: from terminus.zytor.com ([198.137.202.136]:58177 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934827AbeBMMPk (ORCPT ); Tue, 13 Feb 2018 07:15:40 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w1DC5Dnm028224; Tue, 13 Feb 2018 04:05:13 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w1DC5DVH028220; Tue, 13 Feb 2018 04:05:13 -0800 Date: Tue, 13 Feb 2018 04:05:13 -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: ak@linux.intel.com, yao.jin@linux.intel.com, wangnan0@huawei.com, jolsa@kernel.org, acme@redhat.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, namhyung@kernel.org, kan.liang@intel.com, mingo@kernel.org, peterz@infradead.org, hpa@zytor.com Reply-To: namhyung@kernel.org, tglx@linutronix.de, kan.liang@intel.com, hpa@zytor.com, peterz@infradead.org, mingo@kernel.org, acme@redhat.com, linux-kernel@vger.kernel.org, yao.jin@linux.intel.com, wangnan0@huawei.com, jolsa@kernel.org, ak@linux.intel.com 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: 0ecec70a6aae6fc128549b28b33da7f7f82b45bd 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: 0ecec70a6aae6fc128549b28b33da7f7f82b45bd Gitweb: https://git.kernel.org/tip/0ecec70a6aae6fc128549b28b33da7f7f82b45bd Author: Kan Liang AuthorDate: Thu, 18 Jan 2018 13:26:18 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 6 Feb 2018 10:11:49 -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;