Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1764c591 authored by Will Deacon's avatar Will Deacon
Browse files

ARM: perf: remove redundant NULL check on cpu_pmu



cpu_pmu has already been dereferenced before we consider invoking the
->reset function, so remove the redundant NULL check.

Reported-by: default avatarCong Ding <dinggnu@gmail.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 3b953c9c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ static void cpu_pmu_init(struct arm_pmu *cpu_pmu)
	cpu_pmu->free_irq	= cpu_pmu_free_irq;

	/* Ensure the PMU has sane values out of reset. */
	if (cpu_pmu && cpu_pmu->reset)
	if (cpu_pmu->reset)
		on_each_cpu(cpu_pmu->reset, cpu_pmu, 1);
}