summaryrefslogtreecommitdiff
path: root/Kernel/Devices/MemoryDevice.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-06 00:35:27 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-06 00:37:47 +0200
commitad3ae7e0e850313a38ef94c986a058e272f6936b (patch)
tree6bc7f2d3f60eabdf5776e02ebdbf67e05e34544f /Kernel/Devices/MemoryDevice.h
parent3377cc74dffddcca25eee4256dd3d5635fdac6ba (diff)
downloadserenity-ad3ae7e0e850313a38ef94c986a058e272f6936b.zip
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. :^)
Diffstat (limited to 'Kernel/Devices/MemoryDevice.h')
-rw-r--r--Kernel/Devices/MemoryDevice.h2
1 files changed, 1 insertions, 1 deletions
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<size_t> read(FileDescription&, u64, UserOrKernelBuffer&, size_t) override;
- virtual KResultOr<size_t> write(FileDescription&, u64, const UserOrKernelBuffer&, size_t) override { return -EINVAL; }
+ virtual KResultOr<size_t> write(FileDescription&, u64, const UserOrKernelBuffer&, size_t) override { return EINVAL; }
virtual void did_seek(FileDescription&, off_t) override;