diff options
Diffstat (limited to 'os/hal/osal')
-rw-r--r-- | os/hal/osal/rt/osal.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/os/hal/osal/rt/osal.h b/os/hal/osal/rt/osal.h index 74044616a..ab648d720 100644 --- a/os/hal/osal/rt/osal.h +++ b/os/hal/osal/rt/osal.h @@ -839,8 +839,7 @@ static inline void osalMutexLock(mutex_t *mp) { static inline void osalMutexUnlock(mutex_t *mp) {
#if CH_CFG_USE_MUTEXES
- (void)mp;
- chMtxUnlock();
+ chMtxUnlock(mp);
#elif CH_CFG_USE_SEMAPHORES
chSemSignal((semaphore_t *)mp);
#else
|