Received: by 10.223.176.46 with SMTP id f43csp32944wra; Thu, 18 Jan 2018 13:29:47 -0800 (PST) X-Google-Smtp-Source: ACJfBosYUIIFsyVlGPurpbmhtPsO8Vg4rNKHWTO5yOe+ITnYL1Q2Y0ipmfT9YWpXggKeRhEbTeCM X-Received: by 2002:a17:902:4324:: with SMTP id i33-v6mr431410pld.39.1516310987750; Thu, 18 Jan 2018 13:29:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516310987; cv=none; d=google.com; s=arc-20160816; b=TbgDQRCvyWpt9metq9pnDXjdLqsBCk+RLzzbG/xGpBm7O8v7rQkWbmmgcDqHyDpFuV RaRWRRByRJGHDBIIjcuG0zUO6RIdYeTJxQt9K1J/OLOGsK9IH3P3sHJX/saQpvHuxgQc GAkk4z/navq+fCXlF/65qE3+WeThTSx65Zi54L4gmhM3DzjEweDJYgO86i26/eXzqnHE rKS1w7ULwt/Ir9JlaN11if01QKa8eC4qzPJcMqa6gB96vJODHCJITC5FkVozMP9b4UyR 5Jl48d8irGERG06IsTKO6FjmHB9mSVtC0Sstae2llEdFOxwigt/UxkkZOmhflgW3XK1/ vLHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=OXfqVf0n/lsjsfgBX+ns5Laq68NeBjojiApIdqoD67I=; b=ndHo0Y/qXBtIjRu45UWFxpCDxCHvaZiGj0SOmiTLxIBxgXSOFDm3KAGS/8t4bJNOQd dCuDHvWcX2hL5qiCVRVf6DuK4Bgvye3qbKluC+N2srzIJecfPHAxuIS+HjNDKsCeAFcC aFEnTsr4/ZVmXT4HGO+YXpVpOgUe0W0XFX5EOXGRLmIAEGjAFSWLzEg1RxZ4E8uVkHjS Q8qKP4fDeZOD+lZqKkwSfuxtJjvpfjPEPnbbV/kJhyRTH7LoDqHyo4fMNkBAhPS6XrPx z9ug8acLFK2wJtmB/7MIrwTgwnBYfl66h22a82cMGWIaK6COcnt/l82RTQVfdG4S32xB 0Z6A== 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 a5si6706533pgw.241.2018.01.18.13.29.33; Thu, 18 Jan 2018 13:29:47 -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 S932440AbeARV1w (ORCPT + 99 others); Thu, 18 Jan 2018 16:27:52 -0500 Received: from mga04.intel.com ([192.55.52.120]:47423 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753285AbeARV1e (ORCPT ); Thu, 18 Jan 2018 16:27:34 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jan 2018 13:27:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,378,1511856000"; d="scan'208";a="11477213" Received: from otc-knm-01.jf.intel.com ([10.54.39.34]) by fmsmga008.fm.intel.com with ESMTP; 18 Jan 2018 13:27:31 -0800 From: kan.liang@intel.com To: acme@kernel.org, peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org Cc: wangnan0@huawei.com, jolsa@kernel.org, namhyung@kernel.org, ak@linux.intel.com, yao.jin@linux.intel.com, Kan Liang Subject: [PATCH V5 03/17] perf mmap: cleanup perf_mmap__push() Date: Thu, 18 Jan 2018 13:26:18 -0800 Message-Id: <1516310792-208685-4-git-send-email-kan.liang@intel.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1516310792-208685-1-git-send-email-kan.liang@intel.com> References: <1516310792-208685-1-git-send-email-kan.liang@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kan Liang The first assignment for 'start' and 'end' is redundant. Signed-off-by: Kan Liang --- 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; -- 2.5.5