mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
Kernel: Remove else after return in Process::do_write
This commit is contained in:
parent
8e262eab00
commit
f5b495d92c
1 changed files with 1 additions and 2 deletions
|
@ -64,8 +64,7 @@ ErrorOr<FlatPtr> Process::do_write(OpenFileDescription& description, const UserO
|
|||
if (!description.is_blocking()) {
|
||||
if (total_nwritten > 0)
|
||||
return total_nwritten;
|
||||
else
|
||||
return EAGAIN;
|
||||
return EAGAIN;
|
||||
}
|
||||
auto unblock_flags = Thread::FileBlocker::BlockFlags::None;
|
||||
if (Thread::current()->block<Thread::WriteBlocker>({}, description, unblock_flags).was_interrupted()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue