diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-12 09:28:03 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-12 09:28:03 +0000 |
commit | db0b7ae0626ebdfc3cda7bef8bd7bad343cead23 (patch) | |
tree | 8d91763f28c60d249845695c00bbb6aa985d60ed /os/hal/osal/nil/osal.c | |
parent | fc2af0f5896de947b3c59a9251ac4eef91ed005c (diff) | |
download | ChibiOS-db0b7ae0626ebdfc3cda7bef8bd7bad343cead23.tar.gz ChibiOS-db0b7ae0626ebdfc3cda7bef8bd7bad343cead23.tar.bz2 ChibiOS-db0b7ae0626ebdfc3cda7bef8bd7bad343cead23.zip |
More MISRA.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7760 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/osal/nil/osal.c')
-rw-r--r-- | os/hal/osal/nil/osal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/os/hal/osal/nil/osal.c b/os/hal/osal/nil/osal.c index b595f1ca1..92c350492 100644 --- a/os/hal/osal/nil/osal.c +++ b/os/hal/osal/nil/osal.c @@ -62,7 +62,7 @@ void osalThreadDequeueNextI(threads_queue_t *tqp, msg_t msg) {
semaphore_t *sp = &tqp->sem;
- if (chSemGetCounterI(&tqp->sem) < 0) {
+ if (chSemGetCounterI(&tqp->sem) < (cnt_t)0) {
thread_reference_t tr = nil.threads;
while (true) {
/* Is this thread waiting on this semaphore?*/
@@ -71,7 +71,7 @@ void osalThreadDequeueNextI(threads_queue_t *tqp, msg_t msg) { chDbgAssert(NIL_THD_IS_WTSEM(tr), "not waiting");
- chSchReadyI(tr, msg);
+ (void) chSchReadyI(tr, msg);
return;
}
tr++;
@@ -96,16 +96,16 @@ void osalThreadDequeueAllI(threads_queue_t *tqp, msg_t msg) { cnt_t cnt;
cnt = sp->cnt;
- sp->cnt = 0;
+ sp->cnt = (cnt_t)0;
tr = nil.threads;
- while (cnt < 0) {
+ while (cnt < (cnt_t)0) {
/* Is this thread waiting on this semaphore?*/
if (tr->u1.semp == sp) {
chDbgAssert(NIL_THD_IS_WTSEM(tr), "not waiting");
cnt++;
- chSchReadyI(tr, msg);
+ (void) chSchReadyI(tr, msg);
}
tr++;
|