Przeglądaj źródła

removing unnecessary assert

tarfeef101 6 lat temu
rodzic
commit
f2167942d9
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      kern/thread/synch.c

+ 1 - 2
kern/thread/synch.c

@@ -187,8 +187,7 @@ void lock_destroy(struct lock * lock)
 void lock_acquire(struct lock * lock)
 {
   KASSERT(lock);
-  KASSERT(lock_do_i_hold(lock));
-  
+
   spinlock_acquire(&(lock->spin));
   
   while (lock->owner)