diff options
author | Will Deacon <will.deacon@arm.com> | 2013-01-14 17:27:35 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2013-01-14 17:40:38 +0000 |
commit | 1764c591dfed2ce7075465df0591ce9564ff37a1 (patch) | |
tree | a53fa2445b51ff89367d1e2c65dbf2003141e3a8 /arch/arm/kernel/perf_event_cpu.c | |
parent | 3b953c9c159e99f5465dc05dc90ca405fe9a4436 (diff) | |
download | op-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.c | 2 |
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); } |