[kernel] run the kernel through astyle

This commit is contained in:
Travis Geiselbrecht
2012-10-31 21:37:45 -07:00
parent d4fea678f0
commit 80bcb748c8
11 changed files with 46 additions and 46 deletions

View File

@@ -1,6 +1,6 @@
/* semaphore.c
*
* Copyright 2012 Christopher Anderson <chris@nullcode.org>
* Copyright 2012 Christopher Anderson <chris@nullcode.org>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -55,9 +55,9 @@ status_t sem_wait(semaphore_t *sem)
status_t ret = NO_ERROR;
enter_critical_section();
/*
* If there are no resources available then we need to
* sit in the wait queue until sem_post adds some.
/*
* If there are no resources available then we need to
* sit in the wait queue until sem_post adds some.
*/
if (unlikely(--sem->count < 0))
ret = wait_queue_block(&sem->wait, INFINITE_TIME);
@@ -75,7 +75,7 @@ status_t sem_trywait(semaphore_t *sem)
ret = ERR_NOT_READY;
else
sem->count--;
exit_critical_section();
return ret;
}