mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
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>
This commit is contained in:
parent
db417646fe
commit
de6d22ccdc
|
|
@ -818,7 +818,7 @@ static int __hw_perf_event_init(struct perf_event *event)
|
|||
|
||||
/* Use AUX buffer. No need to allocate it by ourself */
|
||||
if (attr->config == PERF_EVENT_CPUM_SF_DIAG)
|
||||
return 0;
|
||||
goto out;
|
||||
|
||||
/* Allocate the per-CPU sampling buffer using the CPU information
|
||||
* from the event. If the event is not pinned to a particular
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user