From a947a1d5ae074f341716d2478922a6d23208bb77 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 6 Feb 2018 18:15:51 +0000 Subject: MISRA-related fixes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11455 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/src/chthreads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os/rt/src') diff --git a/os/rt/src/chthreads.c b/os/rt/src/chthreads.c index ef740eaf9..4d0a641e9 100644 --- a/os/rt/src/chthreads.c +++ b/os/rt/src/chthreads.c @@ -281,7 +281,7 @@ thread_t *chThdCreate(const thread_descriptor_t *tdp) { thread_t *tp; #if (CH_CFG_USE_REGISTRY == TRUE) && \ - (CH_DBG_ENABLE_STACK_CHECK == TRUE) || (CH_CFG_USE_DYNAMIC == TRUE) + ((CH_DBG_ENABLE_STACK_CHECK == TRUE) || (CH_CFG_USE_DYNAMIC == TRUE)) chDbgAssert(chRegFindThreadByWorkingArea(tdp->wbase) == NULL, "working area in use"); #endif @@ -331,7 +331,7 @@ thread_t *chThdCreateStatic(void *wsp, size_t size, (prio <= HIGHPRIO) && (pf != NULL)); #if (CH_CFG_USE_REGISTRY == TRUE) && \ - (CH_DBG_ENABLE_STACK_CHECK == TRUE) || (CH_CFG_USE_DYNAMIC == TRUE) + ((CH_DBG_ENABLE_STACK_CHECK == TRUE) || (CH_CFG_USE_DYNAMIC == TRUE)) chDbgAssert(chRegFindThreadByWorkingArea(wsp) == NULL, "working area in use"); #endif -- cgit v1.2.3