mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:27:35 +00:00
Kernel: Resolve clang-tidy readability-implicit-bool-conversion warnings
... In files included from Kernel/Process.cpp and Kernel/Thread.cpp
This commit is contained in:
parent
6f580f2047
commit
a92132e44a
17 changed files with 85 additions and 84 deletions
|
@ -39,7 +39,7 @@ public:
|
|||
VERIFY(is_locked());
|
||||
track_lock_release(m_rank);
|
||||
m_lock.store(0, AK::memory_order_release);
|
||||
if (prev_flags & 0x200)
|
||||
if ((prev_flags & 0x200) != 0)
|
||||
sti();
|
||||
else
|
||||
cli();
|
||||
|
@ -101,7 +101,7 @@ public:
|
|||
track_lock_release(m_rank);
|
||||
m_lock.store(0, AK::memory_order_release);
|
||||
}
|
||||
if (prev_flags & 0x200)
|
||||
if ((prev_flags & 0x200) != 0)
|
||||
sti();
|
||||
else
|
||||
cli();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue