]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/cpum_sf: Consistently use goto out for function exit
authorThomas Richter <tmricht@linux.ibm.com>
Thu, 24 Oct 2024 11:33:54 +0000 (13:33 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 29 Oct 2024 10:17:18 +0000 (11:17 +0100)
commitde6d22ccdc0904bca56503a024365d50c39a23b1
tree5e110042fa1b051071dca25f9a131fcdc17d4d61
parentdb417646fecd10b330c9dd611a39999520553bf2
s390/cpum_sf: Consistently use goto out for function exit

When the sampling buffer allocation fails in
__hw_perf_event_init(), jump to the end of the function
and return the result. This is consistent with the other
error handling and return conditions in this function.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Reviewed-By: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/perf_cpum_sf.c