aboutsummaryrefslogtreecommitdiffstats
path: root/src/chsys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chsys.c')
-rw-r--r--src/chsys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chsys.c b/src/chsys.c
index 347b75da3..c1666095e 100644
--- a/src/chsys.c
+++ b/src/chsys.c
@@ -120,7 +120,9 @@ void chSysLock(void) {
*/
void chSysUnlock(void) {
+#ifdef CH_USE_NESTED_LOCKS
chDbgAssert(currp->p_locks > 0, "chinit.c, chSysUnlock()");
+#endif
chSysUnlockInline();
}
#endif /* !CH_OPTIMIZE_SPEED */