mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
Remove extra parentheses.
This commit is contained in:
parent
65a7c90189
commit
c8dd768173
1 changed files with 2 additions and 2 deletions
|
|
@ -409,8 +409,8 @@ acpi_acquire_global_lock(uint32_t *lock)
|
|||
|
||||
do {
|
||||
old = *lock;
|
||||
new = (((old & ~GL_BIT_MASK) | GL_BIT_OWNED) |
|
||||
((old >> 1) & GL_BIT_PENDING));
|
||||
new = ((old & ~GL_BIT_MASK) | GL_BIT_OWNED) |
|
||||
((old >> 1) & GL_BIT_PENDING);
|
||||
} while (atomic_cmpset_acq_int(lock, old, new) == 0);
|
||||
|
||||
return ((new < GL_BIT_MASK) ? GL_ACQUIRED : GL_BUSY);
|
||||
|
|
|
|||
Loading…
Reference in a new issue