diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-07 09:25:13 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-07 09:25:13 +0000 |
commit | 57585301af1df353c3dd3a6e389d074bd4de4fcc (patch) | |
tree | 65fef57d39c7c14b73652de26b3653b528ee6450 /os/rt/src/chsys.c | |
parent | 4de725748239e122b27ff2b31aac32b835e8a2d6 (diff) | |
download | ChibiOS-57585301af1df353c3dd3a6e389d074bd4de4fcc.tar.gz ChibiOS-57585301af1df353c3dd3a6e389d074bd4de4fcc.tar.bz2 ChibiOS-57585301af1df353c3dd3a6e389d074bd4de4fcc.zip |
More MISRA.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7726 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/src/chsys.c')
-rw-r--r-- | os/rt/src/chsys.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/os/rt/src/chsys.c b/os/rt/src/chsys.c index 4e2102b89..7754e546d 100644 --- a/os/rt/src/chsys.c +++ b/os/rt/src/chsys.c @@ -191,9 +191,10 @@ void chSysTimerHandlerI(void) { #if CH_CFG_TIME_QUANTUM > 0
/* Running thread has not used up quantum yet? */
- if (currp->p_preempt > 0)
+ if (currp->p_preempt > 0U) {
/* Decrement remaining quantum.*/
currp->p_preempt--;
+ }
#endif
#if CH_DBG_THREADS_PROFILING == TRUE
currp->p_time++;
|