linux/arch
Ingo Molnar 066450be41 perf/x86/intel/pt: Clean up the control flow in pt_pmu_hw_init()
Dan Carpenter pointed out that the control flow in pt_pmu_hw_init()
is a bit messy: for example the kfree(de_attrs) is entirely
superfluous.

Another problem is the inconsistent mixing of label based and
direct return error handling.

Add modern, label based error handling instead and clean up the code
a bit as well.

Note that we'll still do a kfree(NULL) in the normal case - this does
not matter as this is an init path and kfree() returns early if it
sees a NULL.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20150409090805.GG17605@mwanda
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-04-12 11:21:15 +02:00
..
alpha
arc
arm Merge branch 'perf/urgent' into perf/core, before applying dependent patches 2015-04-02 17:17:46 +02:00
arm64 Merge branch 'perf/urgent' into perf/core, before applying dependent patches 2015-04-02 17:17:46 +02:00
avr32
blackfin
c6x
cris
frv
hexagon
ia64
m32r
m68k
metag
microblaze
mips
mn10300
nios2
openrisc
parisc
powerpc Merge branch 'perf/urgent' into perf/core, before applying dependent patches 2015-04-02 17:17:46 +02:00
s390
score
sh
sparc
tile
um
unicore32
x86 perf/x86/intel/pt: Clean up the control flow in pt_pmu_hw_init() 2015-04-12 11:21:15 +02:00
xtensa
.gitignore
Kconfig