summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/write.cpp
diff options
context:
space:
mode:
authorHendiadyoin1 <leon2002.la@gmail.com>2021-12-18 18:34:24 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-18 10:31:18 -0800
commitf5b495d92ce45e21073c44692678680d708af015 (patch)
treeb6a8fd291f26fd95735493c664fe183d72a92457 /Kernel/Syscalls/write.cpp
parent8e262eab00169603e6d20921f39d069a76a80f79 (diff)
downloadserenity-f5b495d92ce45e21073c44692678680d708af015.zip
Kernel: Remove else after return in Process::do_write
Diffstat (limited to 'Kernel/Syscalls/write.cpp')
-rw-r--r--Kernel/Syscalls/write.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/Syscalls/write.cpp b/Kernel/Syscalls/write.cpp
index d056df3b6b..a1dbcb27e5 100644
--- a/Kernel/Syscalls/write.cpp
+++ b/Kernel/Syscalls/write.cpp
@@ -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()) {