summaryrefslogtreecommitdiff
path: root/Kernel/Devices
diff options
context:
space:
mode:
authorSahan Fernando <sahan.h.fernando@gmail.com>2021-05-16 02:21:01 +1000
committerLinus Groh <mail@linusgroh.de>2021-05-15 17:43:45 +0100
commite4f61c6f284d78e442d2e63b6fa83aa3f741072e (patch)
tree093edb0ba12a16ca0f4243d471a8f830f57a4b52 /Kernel/Devices
parentbbb21194a54dbbda470ebc1fcae425572ebfa4d2 (diff)
downloadserenity-e4f61c6f284d78e442d2e63b6fa83aa3f741072e.zip
Kernel: Fix return values of BXVGADevice::read/write
Diffstat (limited to 'Kernel/Devices')
-rw-r--r--Kernel/Devices/BXVGADevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Devices/BXVGADevice.h b/Kernel/Devices/BXVGADevice.h
index 466ff77895..355d258db2 100644
--- a/Kernel/Devices/BXVGADevice.h
+++ b/Kernel/Devices/BXVGADevice.h
@@ -33,8 +33,8 @@ private:
virtual bool can_read(const FileDescription&, size_t) const override { return true; }
virtual bool can_write(const FileDescription&, size_t) const override { return true; }
virtual void start_request(AsyncBlockDeviceRequest& request) override { request.complete(AsyncDeviceRequest::Failure); }
- virtual KResultOr<size_t> read(FileDescription&, u64, UserOrKernelBuffer&, size_t) override { return -EINVAL; }
- virtual KResultOr<size_t> write(FileDescription&, u64, const UserOrKernelBuffer&, size_t) override { return -EINVAL; }
+ virtual KResultOr<size_t> read(FileDescription&, u64, UserOrKernelBuffer&, size_t) override { return EINVAL; }
+ virtual KResultOr<size_t> write(FileDescription&, u64, const UserOrKernelBuffer&, size_t) override { return EINVAL; }
void set_safe_resolution();