summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorAnju T Sudhakar <anju@linux.vnet.ibm.com>2018-05-22 11:12:36 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2018-06-03 12:43:37 +0200
commite7a8ac433845aa86f39bf404ae4b7709f21c7d70 (patch)
treeeb0a4504da63d884164e53a9471d05dd66403df4 /arch/powerpc
parentpowerpc/perf: Replace the direct return with goto statement (diff)
downloadlinux-e7a8ac433845aa86f39bf404ae4b7709f21c7d70.tar.xz
linux-e7a8ac433845aa86f39bf404ae4b7709f21c7d70.zip
powerpc/perf: Return appropriate value for unknown domain
Return proper error code for unknown domain during IMC initialization. Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com> Reviewed-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/perf/imc-pmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/perf/imc-pmu.c b/arch/powerpc/perf/imc-pmu.c
index 61000d174dbd..f563d30292ad 100644
--- a/arch/powerpc/perf/imc-pmu.c
+++ b/arch/powerpc/perf/imc-pmu.c
@@ -1371,7 +1371,7 @@ int init_imc_pmu(struct device_node *parent, struct imc_pmu *pmu_ptr, int pmu_id
break;
default:
- return -1; /* Unknown domain */
+ return -EINVAL; /* Unknown domain */
}
ret = update_events_in_group(parent, pmu_ptr);