]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: perf: simplify __hw_perf_event_init err handling
authorMark Rutland <Mark.Rutland@arm.com>
Fri, 18 Jan 2013 16:10:06 +0000 (16:10 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 18 Jan 2013 16:54:30 +0000 (16:54 +0000)
commit8f2faba66adabc2edd3f9904cc47bc56ea2e6e3c
tree885c469162ee1e518ca8715cef9dd58536991bf3
parenta9da0e1ee59196adea045e1d16dfbd9913925321
ARM: perf: simplify __hw_perf_event_init err handling

Currently __hw_perf_event_init has an err variable that's ignored right
until the end, where it's initialised, conditionally set, and then used
as a boolean flag deciding whether to return another error code.

This patch removes the err variable and simplifies the associated error
handling logic.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event.c