ARM: 6469/1: perf-events: squash compiler warning
authorWill Deacon <will.deacon@arm.com>
Thu, 4 Nov 2010 17:23:50 +0000 (18:23 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 7 Nov 2010 16:12:38 +0000 (16:12 +0000)
commitc3b291d98878a5f25fee56255bcfa420e85dff59
tree9e3a996e5985fb98434ea6c1103a94f305707cb3
parentd33aadbf8e9ba0b844c2a4a03723969c913ab03a
ARM: 6469/1: perf-events: squash compiler warning

armv7_pmnc_counter_has_overflowed can return uninitialised data
if an invalid counter is specified.

This patch fixes the code to return 0 in this case, which squashes
the compiler warning from GCC 4.5.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/perf_event.c