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 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({}, description, unblock_flags).was_interrupted()) {