diff options
| author | Will Deacon <will.deacon@arm.com> | 2013-01-14 12:27:35 -0500 |
|---|---|---|
| committer | Will Deacon <will.deacon@arm.com> | 2013-01-14 12:40:38 -0500 |
| commit | 1764c591dfed2ce7075465df0591ce9564ff37a1 (patch) | |
| tree | a53fa2445b51ff89367d1e2c65dbf2003141e3a8 | |
| parent | 3b953c9c159e99f5465dc05dc90ca405fe9a4436 (diff) | |
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>
| -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 efa52954d628..43496f600569 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) | |||
| 147 | cpu_pmu->free_irq = cpu_pmu_free_irq; | 147 | cpu_pmu->free_irq = cpu_pmu_free_irq; |
| 148 | 148 | ||
| 149 | /* Ensure the PMU has sane values out of reset. */ | 149 | /* Ensure the PMU has sane values out of reset. */ |
| 150 | if (cpu_pmu && cpu_pmu->reset) | 150 | if (cpu_pmu->reset) |
| 151 | on_each_cpu(cpu_pmu->reset, cpu_pmu, 1); | 151 | on_each_cpu(cpu_pmu->reset, cpu_pmu, 1); |
| 152 | } | 152 | } |
| 153 | 153 | ||
