diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/oprofile/oprofile_perf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/oprofile/oprofile_perf.c b/drivers/oprofile/oprofile_perf.c index f3d3df229a43..6853634c4681 100644 --- a/drivers/oprofile/oprofile_perf.c +++ b/drivers/oprofile/oprofile_perf.c | |||
| @@ -117,11 +117,10 @@ static int op_perf_start(void) | |||
| 117 | for (event = 0; event < num_counters; ++event) { | 117 | for (event = 0; event < num_counters; ++event) { |
| 118 | ret = op_create_counter(cpu, event); | 118 | ret = op_create_counter(cpu, event); |
| 119 | if (ret) | 119 | if (ret) |
| 120 | goto out; | 120 | return ret; |
| 121 | } | 121 | } |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | out: | ||
| 125 | return ret; | 124 | return ret; |
| 126 | } | 125 | } |
| 127 | 126 | ||
| @@ -224,7 +223,7 @@ static int __init init_driverfs(void) | |||
| 224 | 223 | ||
| 225 | ret = platform_driver_register(&oprofile_driver); | 224 | ret = platform_driver_register(&oprofile_driver); |
| 226 | if (ret) | 225 | if (ret) |
| 227 | goto out; | 226 | return ret; |
| 228 | 227 | ||
| 229 | oprofile_pdev = platform_device_register_simple( | 228 | oprofile_pdev = platform_device_register_simple( |
| 230 | oprofile_driver.driver.name, 0, NULL, 0); | 229 | oprofile_driver.driver.name, 0, NULL, 0); |
| @@ -233,7 +232,6 @@ static int __init init_driverfs(void) | |||
| 233 | platform_driver_unregister(&oprofile_driver); | 232 | platform_driver_unregister(&oprofile_driver); |
| 234 | } | 233 | } |
| 235 | 234 | ||
| 236 | out: | ||
| 237 | return ret; | 235 | return ret; |
| 238 | } | 236 | } |
| 239 | 237 | ||
