diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-02-09 13:26:53 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-10 09:08:52 +0000 |
commit | 4a916cd3796cef0ef10374fcf9a602c96e226e6c (patch) | |
tree | 8794ceaaad624514796fba84e0a79e3a407079fc /Kernel/Syscalls | |
parent | 52687814ea8f80ea2a0f38af0902e4223a0a76b9 (diff) | |
download | serenity-4a916cd3796cef0ef10374fcf9a602c96e226e6c.zip |
Everywhere: Remove needless copies of Error / ErrorOr instances
Either take the underlying objects with release_* methods or move() the
instances around.
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r-- | Kernel/Syscalls/read.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/read.cpp b/Kernel/Syscalls/read.cpp index f272b0c6de..3314b2bf37 100644 --- a/Kernel/Syscalls/read.cpp +++ b/Kernel/Syscalls/read.cpp @@ -74,7 +74,7 @@ ErrorOr<FlatPtr> Process::sys$readv(int fd, Userspace<const struct iovec*> iov, ErrorOr<FlatPtr> Process::sys$read(int fd, Userspace<u8*> buffer, size_t size) { auto const start_timestamp = TimeManagement::the().uptime_ms(); - auto const result = read_impl(fd, buffer, size); + auto result = read_impl(fd, buffer, size); if (Thread::current()->is_profiling_suppressed()) return result; |