From: Peter Zijlstra Date: Thu, 21 May 2015 08:57:36 +0000 (+0200) Subject: perf/x86/intel: Remove pointless tests X-Git-Tag: omap-for-v4.2/fixes-rc1^2~181^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fe684e349e904adeed2883cfdeef259a21c94f4;p=pandora-kernel.git 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) Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Thomas Gleixner Cc: Vince Weaver Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed