Skip to content

Commit

Permalink
oprofile, ARM: Remove some goto statements
Browse files Browse the repository at this point in the history
This patch removes some unnecessary goto statements.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
  • Loading branch information
Robert Richter committed Oct 11, 2010
1 parent 652953b commit 9c91283
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/oprofile/oprofile_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,10 @@ static int op_perf_start(void)
for (event = 0; event < num_counters; ++event) {
ret = op_create_counter(cpu, event);
if (ret)
goto out;
return ret;
}
}

out:
return ret;
}

Expand Down Expand Up @@ -224,7 +223,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);
Expand All @@ -233,7 +232,6 @@ static int __init init_driverfs(void)
platform_driver_unregister(&oprofile_driver);
}

out:
return ret;
}

Expand Down

0 comments on commit 9c91283

Please sign in to comment.