mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +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
|
@ -40,8 +40,8 @@ public:
|
|||
|
||||
void set_rw_mode(int options)
|
||||
{
|
||||
set_readable(options & O_RDONLY);
|
||||
set_writable(options & O_WRONLY);
|
||||
set_readable((options & O_RDONLY) == O_RDONLY);
|
||||
set_writable((options & O_WRONLY) == O_WRONLY);
|
||||
}
|
||||
|
||||
ErrorOr<void> close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue