Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp945080ybz; Fri, 1 May 2020 11:24:17 -0700 (PDT) X-Google-Smtp-Source: APiQypKi2UmXXzZrTTGRueKPLGJSz6C0cJWwyarqg6M7kQ3/iV8LG+By6UZsCcg2x4IDlcGq5PQF X-Received: by 2002:a50:aa8d:: with SMTP id q13mr4626522edc.88.1588357457119; Fri, 01 May 2020 11:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588357457; cv=none; d=google.com; s=arc-20160816; b=YtoYYSMZNjm2Z7kyUatvpmuaU61b20e1aztSBC3QQXpy3jqYGMLMZ7/lP9ag1C9kdU EHwqkbusAxBWk/G07u2p/XpzQAOTW+MsBP4ltDRbgOm3/N9ElIN8Jh0MD6pCnTI7Lt3R /Nbqd+NXwQkSBfvJJU4n86fCoDnoOv0HMnsxpIPtx33r+MAtDimmlkp2kJ1/D0MXZdZx A/bWI3P25nb43oatlA7oTboWeBGgu8mnrnTZwXeAs8JeOts7VSt1S5yeY3VKf/dPvewx 42Ye2RFRt3mjWKo+j/5HSP1LWSCn6ayps6NvQ4JAJ3ah9Hkz9U21kS8hhfl18cA8qCbl xP7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=91o7EhP2tzVRfxxfSMnoEpF05U/q0gACHYkOfHSiz+c=; b=z6oQC8y7mv29bfatMUAy6pXF300Y7IkGEQ5Yeqd6tUUjyJecXRdBhB+BafIVWIOw1H ghbXksRlo4FemqA56Pp95jE0y2VOXHwE5pnET9kjC3kC01t9oIEO0dHNySP+GxvfiOUw 6gyAQSLNXf0CmURjDXAkOxOHz9aT/jYf4/jmyn1OtVPmARm/9v07O2MWOZAB1wJyiH8W R2RUhAZbT7LpBClPfDFDmRaZYqtNsJBvJB8QD2Wta3ddmPJ2opHdDkHC/e0BX2p5LSEG 5zVHBve7OUTMekNDP+QRqs0UjmHbKgKVdNCjnp1YXJJJhfiIn0vTNJXbTUIpAmjqXg0l 4MTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b95si2275258edf.85.2020.05.01.11.23.53; Fri, 01 May 2020 11:24:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730546AbgEASWQ (ORCPT + 99 others); Fri, 1 May 2020 14:22:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729599AbgEASWM (ORCPT ); Fri, 1 May 2020 14:22:12 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A28FC061A0E; Fri, 1 May 2020 11:22:12 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jUaIY-0003WQ-Ev; Fri, 01 May 2020 20:22:06 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 8FC751C0085; Fri, 1 May 2020 20:22:05 +0200 (CEST) Date: Fri, 01 May 2020 18:22:05 -0000 From: "tip-bot2 for Paul Gortmaker" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf/x86/intel/pt: Drop pointless NULL assignment. Cc: Paul Gortmaker , "Peter Zijlstra (Intel)" , x86 , LKML In-Reply-To: <20200408235216.108980-1-paul.gortmaker@windriver.com> References: <20200408235216.108980-1-paul.gortmaker@windriver.com> MIME-Version: 1.0 Message-ID: <158835732546.8414.11934148365397136617.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 4bd30106ddb26d2304adc5bb7bd269825300440d Gitweb: https://git.kernel.org/tip/4bd30106ddb26d2304adc5bb7bd269825300440d Author: Paul Gortmaker AuthorDate: Wed, 08 Apr 2020 19:52:16 -04:00 Committer: Peter Zijlstra CommitterDate: Thu, 30 Apr 2020 20:14:36 +02:00 perf/x86/intel/pt: Drop pointless NULL assignment. Only a few lines below this removed line is this: attrs = kzalloc(size, GFP_KERNEL); and since there is no code path where this could be avoided, the NULL assignment is a pointless relic of history and can be removed. Signed-off-by: Paul Gortmaker Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20200408235216.108980-1-paul.gortmaker@windriver.com --- arch/x86/events/intel/pt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/events/intel/pt.c b/arch/x86/events/intel/pt.c index 1db7a51..e94af4a 100644 --- a/arch/x86/events/intel/pt.c +++ b/arch/x86/events/intel/pt.c @@ -226,8 +226,6 @@ static int __init pt_pmu_hw_init(void) pt_pmu.vmx = true; } - attrs = NULL; - for (i = 0; i < PT_CPUID_LEAVES; i++) { cpuid_count(20, i, &pt_pmu.caps[CPUID_EAX + i*PT_CPUID_REGS_NUM],