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

Kernel: Tidy up InodeWatcher construction

- Rename create() => try_create()
- Use adopt_nonnull_ref_or_enomem()
This commit is contained in:
Andreas Kling 2021-09-04 23:52:39 +02:00
parent 393229e2aa
commit 68a6d4c30a
3 changed files with 4 additions and 7 deletions

View file

@ -23,7 +23,7 @@ KResultOr<FlatPtr> Process::sys$create_inode_watcher(u32 flags)
return fd_or_error.error();
auto inode_watcher_fd = fd_or_error.release_value();
auto watcher_or_error = InodeWatcher::create();
auto watcher_or_error = InodeWatcher::try_create();
if (watcher_or_error.is_error())
return watcher_or_error.error();