summaryrefslogtreecommitdiffstats
path: root/net/ipv4/xfrm4_mode_tunnel.c
diff options
context:
space:
mode:
authorMark Rutland <Mark.Rutland@arm.com>2013-01-18 14:42:59 +0100
committerWill Deacon <will.deacon@arm.com>2013-01-18 14:46:09 +0100
commit8f3b90b585d3e879b03ce2a202da04d59dd5b699 (patch)
treed592d08d124d1c441d5c6ee66a0adc353f9cb50b /net/ipv4/xfrm4_mode_tunnel.c
parentARM: perf: handle armpmu_register failing (diff)
downloadlinux-8f3b90b585d3e879b03ce2a202da04d59dd5b699.tar.xz
linux-8f3b90b585d3e879b03ce2a202da04d59dd5b699.zip
ARM: perf: remove unnecessary checks for idx < 0
We currently check for hwx->idx < 0 in armpmu_read and armpmu_del unnecessarily. The only case where hwc->idx < 0 is when armpmu_add fails, in which case the event's state is set to PERF_EVENT_STATE_INACTIVE. The perf core will not attempt to read from an event in PERF_EVENT_STATE_INACTIVE, and so the check in armpmu_read is unnecessary. Similarly, if perf core cannot add an event it will not attempt to delete it, so the WARN_ON in armpmu_del is unnecessary. This patch removes these two redundant checks. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'net/ipv4/xfrm4_mode_tunnel.c')
0 files changed, 0 insertions, 0 deletions