From: chai wen Date: Wed, 22 Oct 2014 12:16:49 +0000 (+0100) Subject: ARM: perf: remove useless return and check of idx in counter handling X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~13^2~11^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb6eb108a7be04709f8db0cedde30bee0e0a64ee;p=pandora-kernel.git ARM: perf: remove useless return and check of idx in counter handling Idx sanity check was once implemented separately in these counter handling functions and then return value was treated as a judgement. armv7_pmnc_select_counter() armv7_pmnc_enable_counter() armv7_pmnc_disable_counter() armv7_pmnc_enable_intens() armv7_pmnc_disable_intens() But we do not need to do this now, as idx validation check was moved out all these functions by commit 7279adbd9bb8ef8f(ARM: perf: check ARMv7 counter validity on a per-pmu basis). Let's remove the useless return of idx from these functions. Acked-by: Mark Rutland Signed-off-by: chai wen Signed-off-by: Will Deacon --- Reading git-diff-tree failed