From ad3ae7e0e850313a38ef94c986a058e272f6936b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 6 Aug 2021 00:35:27 +0200 Subject: Kernel: Fix handful of remaining "return -EFOO" mistakes Now that all KResult and KResultOr are used consistently throughout the kernel, it's no longer necessary to return negative error codes. However, we were still doing that in some places, so let's fix all those (bugs) by removing the minuses. :^) --- Kernel/Devices/MemoryDevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Devices/MemoryDevice.h') diff --git a/Kernel/Devices/MemoryDevice.h b/Kernel/Devices/MemoryDevice.h index d5aacf0191..cf5ff1f472 100644 --- a/Kernel/Devices/MemoryDevice.h +++ b/Kernel/Devices/MemoryDevice.h @@ -32,7 +32,7 @@ private: virtual bool can_write(const FileDescription&, size_t) const override { return false; } virtual bool is_seekable() const override { return true; } virtual KResultOr read(FileDescription&, u64, UserOrKernelBuffer&, size_t) override; - virtual KResultOr write(FileDescription&, u64, const UserOrKernelBuffer&, size_t) override { return -EINVAL; } + virtual KResultOr write(FileDescription&, u64, const UserOrKernelBuffer&, size_t) override { return EINVAL; } virtual void did_seek(FileDescription&, off_t) override; -- cgit v1.2.3