perf/x86/intel: Remove pointless tests
authorPeter Zijlstra <peterz@infradead.org>
Thu, 21 May 2015 08:57:36 +0000 (10:57 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 27 May 2015 07:17:44 +0000 (09:17 +0200)
commit1fe684e349e904adeed2883cfdeef259a21c94f4
tree24b41966e9a9854c7b5e6d3ed525fc71f2309581
parent0c41e756b9c5a9899b5cd238226600f8f34c9b82
perf/x86/intel: Remove pointless tests

Both intel_commit_scheduling() and intel_get_excl_contraints() test
for cntr < 0.

The only way that can happen (aside from a bug) is through
validate_event(), however that is already captured by the
cpuc->is_fake test.

So remove these test and simplify the code.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel.c