add missing '!', don't why it was lost when checked in.
This commit is contained in:
parent
53bdb71e06
commit
45330340f4
@ -45,7 +45,7 @@ simplelock_init(struct simplelock *lock)
|
||||
static inline void
|
||||
simplelock_lock(struct simplelock *lock)
|
||||
{
|
||||
while (atomic_cmpset_int(&lock->s_lock, 0, 1))
|
||||
while (!atomic_cmpset_int(&lock->s_lock, 0, 1))
|
||||
;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user