diff options
author | Richard Braun <rbraun@sceen.net> | 2018-07-30 20:55:20 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-07-30 20:55:20 +0200 |
commit | 5f202c9f744a5d9c5b751038edd2379b3d244227 (patch) | |
tree | c5bce5b9e1d9c4b01dfed4ff941ad9944814b93c /kern/condition.c | |
parent | d3e43f5bfda0bdad7a829a7ed8c1272a395b196b (diff) |
Rework assertive functions
Instead of combining assertions and checking into single functions,
rework those into pure checking functions usable with assert().
Those functions were introduced because of warnings about unused
functions/variables caused by an earlier implementation of assert().
Diffstat (limited to 'kern/condition.c')
-rw-r--r-- | kern/condition.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/condition.c b/kern/condition.c index e2c26b62..0a8c78d7 100644 --- a/kern/condition.c +++ b/kern/condition.c @@ -35,7 +35,7 @@ condition_wait_common(struct condition *condition, struct mutex *mutex, struct sleepq *sleepq; int error; - mutex_assert_locked(mutex); + assert(mutex_locked(mutex)); sleepq = sleepq_lend(condition, true); |