diff options
author | Anju T Sudhakar <anju@linux.vnet.ibm.com> | 2018-05-22 11:12:36 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-06-03 12:43:37 +0200 |
commit | e7a8ac433845aa86f39bf404ae4b7709f21c7d70 (patch) | |
tree | eb0a4504da63d884164e53a9471d05dd66403df4 /arch/powerpc/perf/imc-pmu.c | |
parent | powerpc/perf: Replace the direct return with goto statement (diff) | |
download | linux-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/perf/imc-pmu.c')
-rw-r--r-- | arch/powerpc/perf/imc-pmu.c | 2 |
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); |