Commit 9c91283a authored by Robert Richter's avatar Robert Richter

oprofile, ARM: Remove some goto statements

This patch removes some unnecessary goto statements.
Acked-by: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarRobert Richter <robert.richter@amd.com>
parent 652953b7
...@@ -117,11 +117,10 @@ static int op_perf_start(void) ...@@ -117,11 +117,10 @@ static int op_perf_start(void)
for (event = 0; event < num_counters; ++event) { for (event = 0; event < num_counters; ++event) {
ret = op_create_counter(cpu, event); ret = op_create_counter(cpu, event);
if (ret) if (ret)
goto out; return ret;
} }
} }
out:
return ret; return ret;
} }
...@@ -224,7 +223,7 @@ static int __init init_driverfs(void) ...@@ -224,7 +223,7 @@ static int __init init_driverfs(void)
ret = platform_driver_register(&oprofile_driver); ret = platform_driver_register(&oprofile_driver);
if (ret) if (ret)
goto out; return ret;
oprofile_pdev = platform_device_register_simple( oprofile_pdev = platform_device_register_simple(
oprofile_driver.driver.name, 0, NULL, 0); oprofile_driver.driver.name, 0, NULL, 0);
...@@ -233,7 +232,6 @@ static int __init init_driverfs(void) ...@@ -233,7 +232,6 @@ static int __init init_driverfs(void)
platform_driver_unregister(&oprofile_driver); platform_driver_unregister(&oprofile_driver);
} }
out:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment