summaryrefslogtreecommitdiff
path: root/Kernel/Devices
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-06 22:25:02 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-07 01:18:02 +0200
commit4b4e1d1c900cb9fcb2e856dff0f42542e0c3568d (patch)
tree5def1ed01e668140787e85545782ae1ca382c1ca /Kernel/Devices
parente6929835d2438fff5f10da11537dd7d1eb225a80 (diff)
downloadserenity-4b4e1d1c900cb9fcb2e856dff0f42542e0c3568d.zip
Kernel: Remove redundant [[nodiscard]] on KResult return values
Both KResult and KResultOr are [[nodiscard]] at the class level, so there's no need to have functions return `[[nodiscard]] KResult`.
Diffstat (limited to 'Kernel/Devices')
-rw-r--r--Kernel/Devices/AsyncDeviceRequest.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Devices/AsyncDeviceRequest.h b/Kernel/Devices/AsyncDeviceRequest.h
index ef0f86aa52..2afbce1838 100644
--- a/Kernel/Devices/AsyncDeviceRequest.h
+++ b/Kernel/Devices/AsyncDeviceRequest.h
@@ -90,7 +90,7 @@ public:
}
template<size_t BUFFER_BYTES, typename... Args>
- [[nodiscard]] KResultOr<size_t> write_to_buffer_buffered(UserOrKernelBuffer& buffer, Args... args)
+ KResultOr<size_t> write_to_buffer_buffered(UserOrKernelBuffer& buffer, Args... args)
{
if (in_target_context(buffer))
return buffer.write_buffered<BUFFER_BYTES>(forward<Args>(args)...);
@@ -108,7 +108,7 @@ public:
}
template<size_t BUFFER_BYTES, typename... Args>
- [[nodiscard]] KResultOr<size_t> read_from_buffer_buffered(const UserOrKernelBuffer& buffer, Args... args)
+ KResultOr<size_t> read_from_buffer_buffered(const UserOrKernelBuffer& buffer, Args... args)
{
if (in_target_context(buffer))
return buffer.read_buffered<BUFFER_BYTES>(forward<Args>(args)...);