Move variables declaration from start of function to where they are used.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35659 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2340fc36f1
commit
734d41fbf6
@ -93,16 +93,13 @@ sort_timers(timer_info *timers[], int numTimers)
|
||||
int
|
||||
arch_init_timer(kernel_args *args)
|
||||
{
|
||||
int i = 0;
|
||||
timer_info *timer = NULL;
|
||||
cpu_status state;
|
||||
|
||||
// Sort timers by priority
|
||||
sort_timers(sTimers, (sizeof(sTimers) / sizeof(sTimers[0])) - 1);
|
||||
|
||||
state = disable_interrupts();
|
||||
|
||||
for (i = 0; (timer = sTimers[i]) != NULL; i++) {
|
||||
timer_info *timer = NULL;
|
||||
cpu_status state = disable_interrupts();
|
||||
|
||||
for (int i = 0; (timer = sTimers[i]) != NULL; i++) {
|
||||
if (timer->init(args) == B_OK)
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user