s390/cpum_sf: simplify function setup_pmu_cpu
authorThomas Richter <tmricht@linux.ibm.com>
Thu, 23 Mar 2023 14:07:04 +0000 (15:07 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 4 Jul 2023 05:45:17 +0000 (07:45 +0200)
commiteeeff534e9946f1db16eedd35acb9554ad77f4cd
treed51794dc57c459da394d5aaa99d4e3c926b799dc
parentf4767f9f32b7b1abf43baf3beb077e554e35eea7
s390/cpum_sf: simplify function setup_pmu_cpu

Print the error message when the FAILURE flag is set.
This saves on pr_err statement as the text of the error message
is identical in both failures.
Also observe reverse Xmas tree variable declarations in this function.
No functional change.

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kernel/perf_cpum_sf.c