1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

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`.
This commit is contained in:
Andreas Kling 2021-09-06 22:25:02 +02:00
parent e6929835d2
commit 4b4e1d1c90
8 changed files with 21 additions and 21 deletions

View file

@ -193,7 +193,7 @@ KResult copy_from_user(void* dest_ptr, void const* src_ptr, size_t n)
return KSuccess;
}
[[nodiscard]] KResult memset_user(void* dest_ptr, int c, size_t n)
KResult memset_user(void* dest_ptr, int c, size_t n)
{
bool is_user = Kernel::Memory::is_user_range(VirtualAddress(dest_ptr), n);
if (!is_user)