diff options
author | Robert Richter <robert.richter@amd.com> | 2010-08-27 14:32:41 +0200 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2010-10-04 10:55:14 +0200 |
commit | dc0c22b878a60373762495b8e5628a32c1b80ac4 (patch) | |
tree | c78d0e7dae10b8b3f37794b714f1ca819208168f | |
parent | f6be4b428197766521aca664a935c63888d096d9 (diff) |
oprofile, ARM: Remove some goto statements
This patch removes some unnecessary goto statements.
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
-rw-r--r-- | arch/arm/oprofile/common.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/oprofile/common.c b/arch/arm/oprofile/common.c index cec9305c1cc..ab875f304f7 100644 --- a/arch/arm/oprofile/common.c +++ b/arch/arm/oprofile/common.c @@ -135,11 +135,10 @@ static int op_perf_start(void) for (event = 0; event < perf_num_counters; ++event) { ret = op_create_counter(cpu, event); if (ret) - goto out; + return ret; } } -out: return ret; } @@ -263,7 +262,7 @@ static int __init init_driverfs(void) ret = platform_driver_register(&oprofile_driver); if (ret) - goto out; + return ret; oprofile_pdev = platform_device_register_simple( oprofile_driver.driver.name, 0, NULL, 0); @@ -272,7 +271,6 @@ static int __init init_driverfs(void) platform_driver_unregister(&oprofile_driver); } -out: return ret; } |