Skip to content

Commit 4bd3010

Browse files
Paul GortmakerPeter Zijlstra
authored andcommitted
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 <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 2ed6edd commit 4bd3010

File tree

1 file changed

+0
-2
lines changed
  • arch/x86/events/intel

1 file changed

+0
-2
lines changed

arch/x86/events/intel/pt.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,6 @@ static int __init pt_pmu_hw_init(void)
226226
pt_pmu.vmx = true;
227227
}
228228

229-
attrs = NULL;
230-
231229
for (i = 0; i < PT_CPUID_LEAVES; i++) {
232230
cpuid_count(20, i,
233231
&pt_pmu.caps[CPUID_EAX + i*PT_CPUID_REGS_NUM],

0 commit comments

Comments
 (0)