projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6be4b4
)
oprofile, ARM: Remove some goto statements
author
Robert Richter
<
[email protected]
>
Fri, 27 Aug 2010 12:32:41 +0000
(14:32 +0200)
committer
Robert Richter
<
[email protected]
>
Mon, 4 Oct 2010 08:55:14 +0000
(10:55 +0200)
This patch removes some unnecessary goto statements.
Acked-by: Will Deacon <
[email protected]
>
Signed-off-by: Robert Richter <
[email protected]
>
arch/arm/oprofile/common.c
patch
|
blob
|
history
diff --git
a/arch/arm/oprofile/common.c
b/arch/arm/oprofile/common.c
index cec9305c1cce4ee337caaf0e31bf8cab6f797ca5..ab875f304f7cec09161df406a6c412c0c35f6404 100644
(file)
--- 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 ou
t;
+
return re
t;
}
}
-out:
return ret;
}
@@
-263,7
+262,7
@@
static int __init init_driverfs(void)
ret = platform_driver_register(&oprofile_driver);
if (ret)
-
goto ou
t;
+
return re
t;
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;
}