OSDN Git Service

ARM: perf: remove redundant NULL check on cpu_pmu
authorWill Deacon <will.deacon@arm.com>
Mon, 14 Jan 2013 17:27:35 +0000 (17:27 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 14 Jan 2013 17:40:38 +0000 (17:40 +0000)
commit1764c591dfed2ce7075465df0591ce9564ff37a1
treea53fa2445b51ff89367d1e2c65dbf2003141e3a8
parent3b953c9c159e99f5465dc05dc90ca405fe9a4436
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>
arch/arm/kernel/perf_event_cpu.c