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:
parent
e6929835d2
commit
4b4e1d1c90
8 changed files with 21 additions and 21 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue