From: Mark Rutland Date: Fri, 18 Jan 2013 16:10:06 +0000 (+0000) Subject: ARM: perf: simplify __hw_perf_event_init err handling X-Git-Tag: v3.9-rc1~115^2~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dcbf466559f6f2f55d60eb5a1bbebc8e694b52a;p=pandora-kernel.git ARM: perf: simplify __hw_perf_event_init err handling Currently __hw_perf_event_init has an err variable that's ignored right until the end, where it's initialised, conditionally set, and then used as a boolean flag deciding whether to return another error code. This patch removes the err variable and simplifies the associated error handling logic. Signed-off-by: Mark Rutland Signed-off-by: Will Deacon --- Reading git-diff-tree failed