Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/mutex.c

    ra3900cc r08a19ba  
    4040#include <synch/synch.h>
    4141#include <debug.h>
    42 #include <arch.h>
    4342
    4443/** Initialize mutex.
     
    7069        int rc;
    7170
    72         if (mtx->type == MUTEX_PASSIVE && THREAD) {
     71        if (mtx->type == MUTEX_PASSIVE) {
    7372                rc = _semaphore_down_timeout(&mtx->sem, usec, flags);
    7473        } else {
    75                 ASSERT(mtx->type == MUTEX_ACTIVE || !THREAD);
     74                ASSERT(mtx->type == MUTEX_ACTIVE);
    7675                ASSERT(usec == SYNCH_NO_TIMEOUT);
    7776                ASSERT(!(flags & SYNCH_FLAGS_INTERRUPTIBLE));
Note: See TracChangeset for help on using the changeset viewer.