diff --git a/Kernel/Syscalls/write.cpp b/Kernel/Syscalls/write.cpp index b23600166a..4329666d3c 100644 --- a/Kernel/Syscalls/write.cpp +++ b/Kernel/Syscalls/write.cpp @@ -62,9 +62,7 @@ KResultOr Process::do_write(FileDescription& description, const UserOrK size_t total_nwritten = 0; if (description.should_append() && description.file().is_seekable()) { - auto seek_result = description.seek(0, SEEK_END); - if (seek_result.is_error()) - return seek_result.error(); + TRY(description.seek(0, SEEK_END)); } while (total_nwritten < data_size) {