1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

Kernel: Tidy up Plan9FS construction a bit

This commit is contained in:
Andreas Kling 2021-09-06 11:17:53 +02:00
parent 36725228fa
commit d34f2b643e
3 changed files with 12 additions and 25 deletions

View file

@ -77,7 +77,7 @@ KResultOr<FlatPtr> Process::sys$mount(Userspace<const Syscall::SC_mount_params*>
if (description_or_error.is_error())
return EBADF;
auto description = description_or_error.release_value();
fs = Plan9FS::create(*description);
fs = TRY(Plan9FS::try_create(*description));
} else if (fs_type == "proc"sv || fs_type == "ProcFS"sv) {
fs = TRY(ProcFS::try_create());
} else if (fs_type == "devpts"sv || fs_type == "DevPtsFS"sv) {