aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2019-01-26 07:25:24 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2019-01-26 07:25:24 +0000
commitcf4cfd2a4f1d842852454986df6529abb70e5ccf (patch)
treef9aa09ceb1d2237964acb7aec342fd80a3dde265
parente3c246361b4d528aaca396285615b99e4f15e431 (diff)
downloadChibiOS-cf4cfd2a4f1d842852454986df6529abb70e5ccf.tar.gz
ChibiOS-cf4cfd2a4f1d842852454986df6529abb70e5ccf.tar.bz2
ChibiOS-cf4cfd2a4f1d842852454986df6529abb70e5ccf.zip
MISRA-related fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12583 110e8d01-0319-4d1e-a829-52ad28d1bb01
-rw-r--r--os/oslib/include/chobjfifos.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/oslib/include/chobjfifos.h b/os/oslib/include/chobjfifos.h
index c75937eb7..a50ed121f 100644
--- a/os/oslib/include/chobjfifos.h
+++ b/os/oslib/include/chobjfifos.h
@@ -129,7 +129,7 @@ static inline void chFifoObjectInitAligned(objects_fifo_t *ofp, size_t objsize,
size_t objn, unsigned objalign,
void *objbuf, msg_t *msgbuf) {
- chDbgCheck((objsize >= objalign) && (objsize % objalign == 0U));
+ chDbgCheck((objsize >= objalign) && ((objsize % objalign) == 0U));
chGuardedPoolObjectInitAligned(&ofp->free, objsize, objalign);
chGuardedPoolLoadArray(&ofp->free, objbuf, objn);