Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sched/sched/sched_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void sched_lock(void)
* integer type.
*/

DEBUGASSERT(rtcb && rtcb->lockcount < MAX_LOCK_COUNT);
DEBUGASSERT(rtcb->lockcount < MAX_LOCK_COUNT);

/* A counter is used to support locking. This allows nested lock
* operations on this thread (on any CPU)
Expand Down
2 changes: 1 addition & 1 deletion sched/sched/sched_unlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void sched_unlock(void)

/* rtcb may be NULL only during early boot-up phases */

DEBUGASSERT(rtcb && rtcb->lockcount > 0);
DEBUGASSERT(rtcb->lockcount > 0);

/* Check if the lock counter has decremented to zero. If so,
* then pre-emption has been re-enabled.
Expand Down
Loading