diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2020-04-09 02:52:16 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-04-30 21:14:36 +0300 |
commit | 4bd30106ddb26d2304adc5bb7bd269825300440d (patch) | |
tree | 59489a808cdf07d4249cce98d80c883dc4626f7f /arch/x86/events/intel/pt.c | |
parent | 2ed6edd33a214bca02bd2b45e3fc3038a059436b (diff) | |
download | linux-4bd30106ddb26d2304adc5bb7bd269825300440d.tar.xz |
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 <paul.gortmaker@windriver.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200408235216.108980-1-paul.gortmaker@windriver.com
Diffstat (limited to 'arch/x86/events/intel/pt.c')
-rw-r--r-- | arch/x86/events/intel/pt.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/events/intel/pt.c b/arch/x86/events/intel/pt.c index 1db7a51d9792..e94af4a54d0d 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], |