summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/perf_event_cpu.c
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2013-01-14 17:27:35 +0000
committerWill Deacon <will.deacon@arm.com>2013-01-14 17:40:38 +0000
commit1764c591dfed2ce7075465df0591ce9564ff37a1 (patch)
treea53fa2445b51ff89367d1e2c65dbf2003141e3a8 /arch/arm/kernel/perf_event_cpu.c
parent3b953c9c159e99f5465dc05dc90ca405fe9a4436 (diff)
downloadop-kernel-dev-1764c591dfed2ce7075465df0591ce9564ff37a1.zip
op-kernel-dev-1764c591dfed2ce7075465df0591ce9564ff37a1.tar.gz
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: Cong Ding <dinggnu@gmail.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/kernel/perf_event_cpu.c')
-rw-r--r--arch/arm/kernel/perf_event_cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/perf_event_cpu.c b/arch/arm/kernel/perf_event_cpu.c
index efa5295..43496f6 100644
--- a/arch/arm/kernel/perf_event_cpu.c
+++ b/arch/arm/kernel/perf_event_cpu.c
@@ -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);
}
OpenPOWER on IntegriCloud